+ 1
JAVASCRIPT COMPARISON OPERATORS I don't understand.
4 odpowiedzi
+ 2
Maybe this can help you
https://www.w3schools.com/js/js_comparisons.asp
+ 1
Could you provide the code bit which you don't understand?
+ 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
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