- A Shows a warning
- B Prompts to complete the statement
- C Throws an error
- D Ignores the statements
- Share this MCQ
Answer:
D
Share this MCQ
In JavaScript, when the interpreter encounters a empty statements it normally ignores or not response to that empty statement.
The empty statements also sometimes very useful like we use the empty statements for creating loop for nothing.
In JavaScript, an empty statement is a statement that does nothing.
It is simply a semicolon (;) with no accompanying code.
Empty statements are often used as placeholders in code where a statement is required, but no action needs to be taken
Share this MCQ