JAVASCRIPT COMPARISON OPERATORS I don't understand. | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

JAVASCRIPT COMPARISON OPERATORS I don't understand.

29th Oct 2021, 11:09 PM
Val Desousa
4 Réponses
29th Oct 2021, 11:21 PM
PanicS
PanicS - avatar
+ 1
Could you provide the code bit which you don't understand?
30th Oct 2021, 12:27 AM
Gordon
Gordon - avatar
+ 1
In javascript, we have 2 different types of comparison operators 1 == it will check the value of variables 2 === it will check the value as well as the datatype of a particular value
30th Oct 2021, 6:07 AM
sree harsha
sree harsha - avatar
0
console.log(1 == '1') // (true) match number and string, but string in this example match 1 and 1, do not strong match console.log (1 === '1') // (false) match strong, match 1 and string 1 or number and string
31st Oct 2021, 8:12 PM
golovastik
golovastik - avatar