Modules, Functions and Types
Modules, Functions and TypesWelcome
Get to know each other, and ensure everyone has the course projects installed properly.
Modules, Functions and TypesTypes and Operators
Modules, Functions and TypesBasic Functions
Modules, Functions and TypesBasic Objects
Modules, Functions and TypesEXERCISE: Two Kinds of Color
Using a property descriptor, define a property on an object that's derived from other values. We should be able to get and set this property just as if it were value based, and the getter and setter you define should keep all of the dependencies in sync properly.
Modules, Functions and TypesModules
Modules, Functions and TypesEXERCISE: Refactoring into Modules
Take a solution from the previous exercise and refactor it, so that the heavy lifting is done by two pure functions in a separate module.
Modules, Functions and TypesCoffee Break
Modules, Functions and TypesDeeper Functions
Modules, Functions and TypesEXERCISE: Functional Cart
Build a shopping cart that takes advantage of a closure's ability to hold state (and functions defined within that closure to access that state).
Modules, Functions and TypesLunch
Break for lunch