Submodule 12.1: JavaScript Functions

  • What are functions?
  • Parameters and Arguments
  • Return

Exersice

Exercise

  1. Open your editor, create a new file and save it as exersice12.3.html in the folder "yourNameWEB2JS".
  2. Copy the code below and paste it in the new file.
  3. Replace the “placeholder” in the script area, with the appropriate operator. We want to decide if a number is odd or even.

Code:

Solution:

### --> %2