Click here to Skip to main content
Click here to Skip to main content
Alternatives (2)
Go to top

Javascript Operators === & !==

, 28 Feb 2011
Javascript Operators === & !==

Alternatives

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

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...
10 Mar 2011
egozi13
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)

Share

About the Author

Antoun Gorgy
Software Developer
Egypt Egypt
- BSc Computer Engineering
Ain Shams University - Faculty of Engineering

| | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 1 Mar 2011
Article Copyright 2011 by Antoun Gorgy
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid