1. Introduction


After completing this module, you would be able to:

    • Understand how a JavaScript function works
    • Create simple functions


          Interactivity is one of the essential features of a website. We want to have a dynamic website that allows our users, not just to be passive viewers, but to have a better user experience.

          In order to achieve such a goal, JavaScript functions are an essential part of scripts as they are designed to invoke or execute some actions.