CJCoding With Joseph
15free / daySign inCreate account
Back to Multiple Choice Quiz

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics

Doubling With map

JavaScript quiz · Question 13
easyLoops

What array results from running the following code?

Code

1const numbers = [1, 2, 3, 4];
2const doubled = numbers.map(n => n * 2);
3console.log(doubled);