Q: What does a block of statements mean in JavaScript?
-
A
Conditional block
-
B
Block that combines a number of statements into a single compound statement
-
C
Both conditional block and a single statement
-
D
Block that contains a single statement
B
Answer:
B
Explanation:
A block of statements is a group of zero or more statements that are treated as a single unit.
In JavaScript, a block of statements is defined using curly braces {}.
A block of statement can be understand as the set of the zero or more statements.
In general, a block of statement has common definition "which combines one or a number of statements into a single statement for ease.
Related Topic:
Share Above MCQ