Friday, February 23, 2024
 Popular · Latest · Hot · Upcoming
35
rated 0 times [  40] [ 5]  / answers: 1 / hits: 16104  / 15 Years ago, tue, july 7, 2009, 12:00:00

Possible Duplicate:

Javascript === vs == : Does it matter which “equal” operator I use?




What are the differences between === vs == and !== vs !=?



When should you use each one?


More From » equals

 Answers
38

=== is the Identity operator, and is used to test that value and type are equal.



so..



3 == 3 // true
3 === 3 // false
1 == true // true
1 === true // false
1 == true // true
1 === true // false


so when you care that value and type are equal, or not equal use Identity operators === or !==


[#99174] Thursday, July 2, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
faithemilys

Total Points: 418
Total Questions: 100
Total Answers: 114

Location: North Korea
Member since Fri, Nov 4, 2022
1 Year ago
faithemilys questions
Wed, Mar 31, 21, 00:00, 3 Years ago
Thu, Oct 15, 20, 00:00, 3 Years ago
Tue, Sep 22, 20, 00:00, 4 Years ago
Sun, Feb 9, 20, 00:00, 4 Years ago
Fri, Dec 6, 19, 00:00, 4 Years ago
;