User-Defined Functions
P. 22: A function is a named block of code:
- Groups statements together (=> “mini-program”)
- Makes code reusable (=> Lego block)
- Defines a rule that describe how to compute a result when given values for the parameters.
Required Readings
Refresh/Reload Keyboard Commands (xkcd). Memorize Hard Refresh, and be careful with Hardest Refresh.
Command-Line JavaScript
- Ch. 3: Functions; Function Expressions.
- Ch. 4: Selection Statements (aka, Conditionals)
- Ch. 9: The .js File
- Ch. 10: Comments & Style Guide (⇒ beautify & prettier packages)
- Ch. 15: Numbers && Operators
Client-Side JavaScript
- Ch. 21-23: The DOM
Optional Web Field Trips
- Spaces vs. Tabs (youtube)
- Semicolons (;)