HomeTracks
Explorer···
THEEBUG
Completed0/11
Score0
JSlesson4.js×
THEEBUGlesson4.js
1
const nums = [1, 2, 3, 4, 5];
2
const doubled = nums.______(n => n * 2);
3
 
4
console.log(doubled);
5
// [2, 4, 6, 8, 10]
$[system] Theebug ready. Happy coding!
Code BlocksDrag blocks into the drop zones above
4 blocks available
map
filter
reduce
forEach
Game Panel
0:000 pts
Level 4 of 11Array Methods
0/1 slots correct
Objective
Use the right array method to create a new array with each number doubled
Expected Output
[2, 4, 6, 8, 10]
Debug says:
I need to TRANSFORM every number in the array into a new one! Which array method creates a NEW array with each element transformed? Think 🗺️!
Debug the Worm