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
Do you see value in our efforts?

Devtools Tech is a free platform for Frontend Engineers. It takes a lot of time, effort, and finanical resources to keep the platform running. If you see any value in our work and would like to support us then you can do using the following options.