+ 9
What is identical(===) operator ?
anyone can explain......
3 odpowiedzi
+ 18
This operator compares two elements for type and value.
In Javascript, for example, this will be true:
1 == "1" // true
...because Javascript converts automatically the type for compare the elements.
With the "===" operator, Javascript doesn't convert the type of the elements, so...
1 === "1" // false
+ 7
thank you
+ 3
1=="1" //is true