Skip to content
Onsite

Output: [1, 2, 3].map(parseInt)

MediumP2Output

What does this code print?

1console.log([1, 2, 3].map(parseInt));
2console.log(['10', '10', '10'].map(parseInt));
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