Tuesday, May 21, 2024
 Popular · Latest · Hot · Upcoming
97
rated 0 times [  101] [ 4]  / answers: 1 / hits: 77059  / 15 Years ago, tue, december 22, 2009, 12:00:00
More From » syntax

 Answers
4

They are subtly not the same.



!= checks the value

!== checks the value and type



'1' != 1   // false (these two are the same)
'1' !== 1 // true (these two are **not** the same).


In the previous example. The first half of the expression is a string, the second half is an integer.


[#98015] Friday, December 18, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kristiano

Total Points: 652
Total Questions: 94
Total Answers: 108

Location: Suriname
Member since Sun, Jun 13, 2021
3 Years ago
;