Welcome to MSDN Blogs Sign in | Join | Help

Why do I need the parameters === and !== in JavaScript?

While showing the content of MicrosoftAjax.debug.js in Lutz Roeder's fantastic .NET Reflector I got asked what the parameters === and !== in JavaScript are for (and unfortunately didn't have an answer :-( ). Well, as it turns out === and !== are Comparison Operators in JScript 5.6 and behave identically to the equality operators (== and !=) except no type conversion is done, and the types must be the same to be considered equal.
The details can be found in the article Comparison Operators (JScript 5.6) on MSDN.

Regards

Daniel

Published Friday, January 18, 2008 1:06 PM by Walzenbach

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# MSDN Blog Postings » Why do I need the parameters === and !== in JavaScript?

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker