0

Why 'test' == 0 is true ?

5th Jun 2017, 8:28 AM
Lucian Ionut
Lucian Ionut - avatar
3 Réponses
+ 2
Everything except '1' is 0. #Computer is dumb.
5th Jun 2017, 8:37 AM
Cyrus Ornob Corraya
Cyrus Ornob Corraya - avatar
+ 1
test is string 0 convert to string 'test'=='0'
5th Jun 2017, 8:44 AM
M0H4MM4D
M0H4MM4D - avatar
0
Try '-8test' == 0 , it is false, and '-0test' == 0 is true
5th Jun 2017, 8:41 AM
Lucian Ionut
Lucian Ionut - avatar