What does [ ] evaluate to and why | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What does [ ] evaluate to and why

in java script

19th Nov 2017, 12:42 PM
Akintoye Kolawole Samson
Akintoye Kolawole Samson - avatar
2 Answers
+ 4
It evaluates to False, because it's an empty list and has no value.
19th Nov 2017, 12:46 PM
Tim Thuma
Tim Thuma - avatar
0
thanks
4th Dec 2017, 8:52 PM
Akintoye Kolawole Samson
Akintoye Kolawole Samson - avatar