Preperation

In class: 

  • Write a JS file in an editor, and run it using the console window
  • Look a some alternate ways of writing functions in JavaScript

Active Learning

  • Write a JavaScript function that takes two numbers as parameters, and returns an array of their sum and product.
  • Use the console window to call your function and log its output