0

Comparison operator === and !===

Are the comparison operator === and !=== used for string type only, or there are other uses fir it

29th May 2017, 7:50 PM
Abdulhadi Alhamad
6 odpowiedzi
+ 3
You should refer to the same thread you created because they are of the same topic.
29th May 2017, 7:53 PM
Awele Omeligwe
Awele Omeligwe - avatar
29th May 2017, 8:34 PM
Gurpreet Singh
Gurpreet Singh - avatar
+ 1
these operators are used to check the value as well as type of 2 operands. can operate numbers and boolean also
29th May 2017, 8:12 PM
Gurpreet Singh
Gurpreet Singh - avatar
+ 1
does it? sorry i was not aware. why dont u just test it on code editor?
29th May 2017, 8:26 PM
Gurpreet Singh
Gurpreet Singh - avatar
+ 1
if we declare var x = 5 then x === 5 is true x === "5" is false
29th May 2017, 9:31 PM
Abdulhadi Alhamad
0
sorry but this exactly what the tutorial pages describe
29th May 2017, 8:21 PM
Abdulhadi Alhamad