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
πŸ’¬ Discuss
βœ… Correct Answer: (B) It uses === and !== instead
Explanation: 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.
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.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
143
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
93%
Success Rate