Home » JavaScript » JavaScript Statements » Question

JavaScript Statements

  1. The “var” and “function” are __________.
    1. Prototypes
    2. Data types
    3. Keywords
    4. Declaration statements
    5. None of these
Correct Option: D

The var and function are declaration statements—they declare or define variables and functions. These statements define identifiers (variable and function names) that can be used elsewhere in your program and assign values to those identifiers.



Your comments will be displayed only after manual approval.