+ 5
What's true and false in Javascript
9 Respostas
+ 2
It's possible values of boolean variables
+ 10
@Isomer, in terms of numbers it should be:
true = -∞, -3, -2, -1 && 1, 2, 3, ∞
false = 0, NaN
:D
+ 9
@Isomer, not your bad... it's right what you said... i was just to emphasize. ^^
+ 5
see js code section
https://code.sololearn.com/WtCytulJTqGc/?ref=app
+ 4
true: true thing
false:Imaginary
Is this what ya want?
+ 3
@Maz my bad.but most of times people use 1 for true
+ 2
true=1 and false=0
+ 2
false: false, 0, null , undefined , NaN , "" (empty string )
true : everythin' else.
+ 1
@Maz NaN is number too ;)