JavaScript Assignment #13


This is an introduction to functions.

  1. Reconfigure the previous assignment to execute using a function.
  2. Specifically, when the user clicks on the button, the onClick event handler calls a function.
  3. The function then executes the statement that changes the background color to blue.
  4. Here is a function example that you can use.

Next assignment ... Assignment #14