4. OO IN JAVASCRIPT - CLASSES
Designing classes
•Member data &
methods
•Access control
•A note on “new”
5. CLOSURES
Closures
•What are they?
•Some use cases
•Private members
•Backing data for accessors
6. VARIABLE HOISTING & SCOPES
Static typers beware!
•Only functions form variable scope
•Variables get “hoisted”
•Declare everything at the top
•Use immediate functions to limit
scope of locals in global code