+ 5
If (a==b) and if (a===b) are the same??
8 Answers
+ 16
tl;dr
== checks the values.
=== checks the values and the data types
+ 8
(a == b) returns true if value of 'a' and 'b' are equal else false.
(a === b) returns true if 'a' and 'b' are of same type and their values are equal else false.
+ 8
=== isn't there in C++...
Why use a C++ tag then?
+ 7
C# also doesn't support === operator. He just added every language he knows.
+ 6
@Mr Sab
Thats what I'm saying!
Its there in Java but not in C++!
+ 2
doesn't support === in java ? ?
+ 1
mmm ok thx my frnd