Back to Multiple Choice Quiz
Doubling With map
JavaScript quiz · Question 13What array results from running the following code?
Code
1const numbers = [1, 2, 3, 4];2const doubled = numbers.map(n => n * 2);3console.log(doubled);