Home > Articles

  • Print
  • + Share This
This chapter is from the book

Quiz

Test your knowledge of the JavaScript concepts covered in this hour by answering the following questions.

Questions

  1. A script that executes when the user clicks the mouse button is an example of what?

    1. An object

    2. An event handler

    3. An impossibility

  2. Which of the following are capabilities of functions in JavaScript?

    1. Accept parameters

    2. Return a value

    3. Both of the above

  3. Which of the following is executed first by a browser?

    1. A script in the <head> section

    2. A script in the <body> section

    3. An event handler for a button

Answers

  1. A script that executes when the user clicks the mouse button is an event handler.

  2. Functions can both accept parameters and return values.

  3. Scripts defined in the <head> section of an HTML document are executed first by the browser.

  • + Share This
  • 🔖 Save To Your Account