What is the result of the comparison operator === if the operands are of different types?

  • FALSE
  • TRUE
  • Undefined
  • Error
The comparison operator === (strict equality) in JavaScript returns true if the operands are of different types and have the same value. JavaScript performs type coercion with ==, but === strictly checks both value and type.
Add your answer
Loading...

Leave a comment

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