0

What is use of === in java script?

1st Feb 2017, 12:43 PM
[No Name]
[No Name] - avatar
9 odpowiedzi
+ 8
"string"==number: "2"==2 //true "2"===2 //false …~_~…
1st Feb 2017, 1:05 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 7
Match data & type. "+2"==2 //true "+2"===2 //false
1st Feb 2017, 12:57 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 7
I said!!!
1st Feb 2017, 1:02 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 1
This compares not only the value of variable, but also the type of variables
1st Feb 2017, 3:46 PM
Dmitriy Nastasiy
Dmitriy Nastasiy - avatar
+ 1
For example: Var a = "2"; //string Var b = 2; //number a == b; //true (their values equal) a === b //false (their type are not equal)
1st Feb 2017, 3:50 PM
Dmitriy Nastasiy
Dmitriy Nastasiy - avatar
0
means?
1st Feb 2017, 1:01 PM
[No Name]
[No Name] - avatar
0
type means? plz explain in brief
1st Feb 2017, 1:03 PM
[No Name]
[No Name] - avatar
0
Thanks
1st Feb 2017, 3:47 PM
[No Name]
[No Name] - avatar
0
thnks Dmitriy
1st Feb 2017, 3:51 PM
[No Name]
[No Name] - avatar