The ________ operator can be used to compare both value and type in JavaScript.

  • Equality (===)
  • Assignment (=)
  • Identity (==)
  • Inequality (!=)
The Equality (===) operator can be used to compare both value and type in JavaScript. It checks if two values are strictly equal, meaning they have the same value and the same data type. The other options, such as Assignment (=) and Identity (==), do not perform strict value and type comparison. Inequality (!=) checks for inequality.
Add your answer
Loading...

Leave a comment

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