The switch statement in JavaScript uses _________ comparison to evaluate cases.

  • Strict (===)
  • Loose (==)
  • Greater (>)
  • Lesser (<)
The switch statement in JavaScript uses strict (===) comparison to evaluate cases. This means that not only the value but also the data type must match for a case to be executed. This ensures accuracy when comparing values in a switch statement.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *