What is identical (===)? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

What is identical (===)?

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