User-Defined Functions
P. 22: A function is a named block of code that:
- Groups statements together (=> “mini-program”)
- Makes code reusable (=> Lego block)
Required Readings
Command-Line JavaScript
- Ch. 3: Functions
- Ch. 4: Selection Statements
- Ch. 9: .js Files
- Ch. 10: Comments & Style Guide (Beautify)
- Ch. 15: Numbers && Operators
Client-Side JavaScript
- Ch. 21-23: The DOM
Optional Web Field Trips
- Don’t fear Technology, Robots or the Future (Tim O’Reilly)
- The Digital Meltdown (NYT). An interesting description of the Meltdown security flaw.