Home > Articles > Open Source > Ajax & JavaScript

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


Try to answer all the questions before reading the subsequent “Answers” section.


  1. Functions are called using
    1. The function keyword
    2. The call command
    3. The function name, with parentheses
  2. What happens when a function executes a return statement?
    1. An error message is generated.
    2. A value is returned and function execution continues.
    3. A value is returned and function execution stops.
  3. A variable declared inside a function definition is called
    1. A local variable
    2. A global variable
    3. An argument


  1. c. A function is called using the function name.
  2. c. After executing a return statement, a function returns a value and then ceases function execution.
  3. a. A variable defined within a function has local scope.
  • + Share This
  • 🔖 Save To Your Account