JS Coding Questions Logo
JS Coding Questions
#18🎯 Exercise💻 Code

JavaScript Coding Exercise 18

Advertisement

728x90
javascript
1console.log([0] == false);
2
3if ([0]) {
4
5console.log("I'm True");
6} else {
7
8console.log("I'm False");
9}

Choose the correct output:

A
True, I'm True
B
True, I'm False
C
False, I'm True
D
False, I'm False

Advertisement

Responsive Ad
18of86