Submodule 12.1: JavaScript Functions

  • What are functions?
  • Parameters and Arguments
  • Return

Prerequisites for this submodule

You have to study the following educational material before starting this submodule:

Simple JavaScript file:

  • Where do we put JavaScript code in the HTML code;
  • Variables
  • Developer tools (console)
  • The functions "alert" and "prompt"

Making decisions

  • Comparison operators
  • If statements
  • Logical operators