0

What is identical (===)?

31st Oct 2020, 8:00 AM
V.Hashini Vasanthan
V.Hashini Vasanthan - avatar
1 ответ
+ 7
It checks if the value and the types are identical. == only checks if the values are identical, so "2" == 2 is true. But "2" === 2 is false.
31st Oct 2020, 8:06 AM
Théophile
Théophile - avatar