1.

When an empty statement is encountered, a JavaScript interpreter __________(a) Ignores the statement(b) Prompts to complete the statement(c) Throws an error(d) Shows a warningI got this question in class test.This intriguing question originated from Statements in division Lexical Structures of JavaScript

Answer»

The correct choice is (a) Ignores the statement

The best explanation: 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.



Discussion

No Comment Found

Related InterviewSolutions