What is identical (===)? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

What is identical (===)?

31st Oct 2020, 8:00 AM
V.Hashini Vasanthan
V.Hashini Vasanthan - avatar
1 Réponse
+ 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