0

Umm help.

console.log((false===(false&&false))+"1") console.log((false&&false)+"2") console.log((true&&false)+"3") console.log((true&&true)+"4") console.log((0&&true)+"5") console.log((2&&500)+"6")

15th May 2019, 3:55 AM
Trex 2.0.1
Trex 2.0.1 - avatar
2 Respostas
+ 5
You would need semicolons as statement terminators I think.
15th May 2019, 4:13 AM
Sonic
Sonic - avatar
+ 1
In each case, the result of logical operations are concatenated with the string followed by them (which are numbers). To get more understanding of why this output, have a glance at this - https://javascript.info/logical-operators
15th May 2019, 3:59 AM
Sachin Artani
Sachin Artani - avatar