Skip to content
Onsite

Output: [] == ![], null == 0, null >= 0, undefined == null

MediumP2Output

What does this code print?

1console.log([] == ![]);
2console.log(null == 0);
3console.log(null >= 0);
4console.log(undefined == null);
Saved automatically

One line per console.log. Arrays as [1, 2, 3], objects as { a: 1 }, an uncaught error as Uncaught TypeError: message (Chrome and Node wording).

Hints

Saved automatically