M

Mr. Dubey • 97.30K Points
Coach

Q. Why does JavaScript subset disallow == and !=?

  • (A) It uses bitwise checking
  • (B) It uses === and !== instead
  • (C) It uses equals() and notequals() instead
  • (D) None of the mentioned

Explanation by: Mr. Dubey
The subset does not include the comma operator, the bitwise operators, or the ++ and — operators. It also disallows == and != because of the type conversion they perform, requiring use of === and !== instead.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics