University of Oregon

Week 2

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

Skip to toolbar