What will the following code log?
const n = [1, 2, 3]; const doubled = n.map((n) => n * 2); console.log(doubled);
[2, 4, 6]
[1, 2, 3]
[4, 8, 12]
Error
This question is part of this quiz :