Home » JavaScript » JavaScript Statements » Question

JavaScript Statements

  1. When an empty statement is encountered, a JavaScript interpreter __________.
    1. Throws an error
    2. Shows a warning
    3. Ignores the statement
    4. Prompts to complete the statement
    5. None of these
Correct Option: C

The JavaScript interpreter takes no action when it executes an empty statement. The empty statement is occasionally useful when you want to create a loop that has an empty body.



Your comments will be displayed only after manual approval.