1.

What does javascript use instead of == and !=?(a) It uses bitwise checking(b) It uses === and !== instead(c) It uses equals() and notequals() instead(d) It uses equalto()The question was posed to me during an interview for a job.This intriguing question comes from JavaScript Subsets topic in chapter Classes and Modules in JavaScript of JavaScript

Answer» RIGHT ANSWER is (b) It uses === and !== instead

Best 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.


Discussion

No Comment Found

Related InterviewSolutions