1.

What is a block statement in JavaScript?(a) conditional block(b) block that contains a single statement(c) both conditional block and a single statement(d) block that combines multiple statements into a single compound statementI got this question in quiz.I want to ask this question from Statements in section Lexical Structures of JavaScript

Answer»

Correct OPTION is (d) block that combines MULTIPLE statements into a single COMPOUND statement

For explanation I WOULD SAY: A block statement groups zero or more statements. In languages other than JavaScript, it is known as a compound statement. A statement block is a block that combines more than one statements into a single compound statement for ease.



Discussion

No Comment Found

Related InterviewSolutions