How the comparison happens with switch cases in JavaScript?
@Devtools Tech
The switch statement is used to perform different actions based on different conditions in JavaScript.
Option 1
Both the expression's value and datatype are matched
Option 2
Only the datatype of the expression is compared
Option 3
Only the value of the expression is compared
Option 4
None of the above