+ 1

I did not understand the diff. b/w the equal and identical operators?

6th Aug 2016, 9:02 AM
Sneha Bagde
Sneha Bagde - avatar
2 Réponses
+ 4
= operator assigns value to variables that can be reassigned whereas identical operator i.e.=== means that compared variables are equal wrt value as well as data type
8th Aug 2016, 7:57 PM
zaheer
zaheer - avatar
0
"20" == 20: true "20" === 20: false
8th Sep 2016, 12:42 PM
Garrett Fitzgerald
Garrett Fitzgerald - avatar