Explain why +[] == 0 give output 'true' in Javascript?
+[] == 0
Please, check example.
+[] == 0 ? alert(true) : alert(false);
And also check.'1+[+[]]' give output '10'
'1+[+[]]'
No comments:
Post a Comment