0 votes
in JavaScript by
In the following given syntax of the switch statement, the Expression is compared with the labels using which one of the following operators?

switch(expression)  

{  

    statements  

}  

a) ===

b) equals

c) ==

d) equals

1 Answer

0 votes
by

Answer: A

Reason: The strict comparison operator returns true only if the operand are of the same type and content matches. When the switch statement is executed, the value of the expression is calculated and compared to the case labels, and looks for a case whose expressions produce the same value after evaluations (where the comparison is determined by the === operator).

Related questions

0 votes
asked Mar 21, 2021 in JavaScript by rajeshsharma
0 votes
asked Feb 5, 2021 in Angular by SakshiSharma
...