Click here to Skip to main content
15,885,985 members
Articles / Web Development / HTML

Javascript Operators === & !==

Rate me:
Please Sign up or sign in to vote.
4.33/5 (6 votes)
28 Feb 2011CPOL 20K   5  
Javascript Operators === & !==

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
10 Mar 2011Øyvind Sean Kinsey
The algorithm behind the EqualityExpression (==,===, !=, !==) is a bit more complex than what is portrayed in some of the other alternates and comments, and a correct understanding of this actually quite important in order to avoid unforeseen errors in javascript programs.The short story is...
Please Sign up or sign in to vote.
10 Mar 2011egozi13
The actual difference between Javascript's == and === operators is that the == operator is less strict when comparing the operands. For example, 1=="1" evaluates to true while 1==="1" evaluates to false.Full description can be found on ECMAScript standard, at...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Egypt Egypt
- BSc Computer Engineering
Ain Shams University - Faculty of Engineering

Comments and Discussions