0
Comparison operator === and !===
Are the comparison operator === and !=== used for string type only, or there are other uses fir it
6 Answers
+ 3
You should refer to the same thread you created because they are of the same topic.
+ 2
check this lazy man :)
https://code.sololearn.com/Wjz11kCDD8mf/?ref=app
+ 1
these operators are used to check the value as well as type of 2 operands.
can operate numbers and boolean also
+ 1
does it? sorry i was not aware. why dont u just test it on code editor?
+ 1
if we declare var x = 5 then
x === 5 is true
x === "5" is false
0
sorry but this exactly what the tutorial pages describe