Skip to content
Onsite

Output: typeof null, typeof [], typeof NaN, typeof a function, typeof an undeclared variable

EasyP1Output

What does this code print?

1console.log(typeof null, typeof [], typeof NaN);
2console.log(typeof function () {}, typeof notDeclared);
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