CJCoding With Joseph
15per day
← Back to Question List

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

Topics:
JavaScript Quiz #13

Doubling With map

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);