MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerAnimemes/comments/ec4nw2/cs_students_in_a_nutshell/fb9znir/
r/ProgrammerAnimemes • u/RawBeanII • Dec 18 '19
29 comments sorted by
View all comments
Show parent comment
14
Strict value comparison. The only difference is that the values must be identical, same value and same type.
var x = "1", y = 1;
x == y // true
x === y // false
6 u/MysteryMage Dec 18 '19 Oh I see . Thanks for the explanation 4 u/akuankka128 Dec 18 '19 No problem
6
Oh I see . Thanks for the explanation
4 u/akuankka128 Dec 18 '19 No problem
4
No problem
View all comments
Show parent comment
14
u/akuankka128 Dec 18 '19
Strict value comparison. The only difference is that the values must be identical, same value and same type.
var x = "1", y = 1;
x == y // true
x === y // false