Home
Tracks
Reset
Help
Theebug — Learn JavaScript by Doing
Light
Explorer
···
▼
THEEBUG
lesson1.js
lesson2.js
lesson3.js
lesson4.js
lesson5.js
lesson6.js
lesson7.js
lesson8.js
lesson9.js
lesson10.js
lesson11.js
Completed
0/11
Score
0
JS
lesson4.js
×
THEEBUG
›
lesson4.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]
TERMINAL
PROBLEMS
OUTPUT
DEBUG CONSOLE
⊕
⋮
$
[system] Theebug ready. Happy coding!
Code Blocks
Drag blocks into the drop zones above
4 blocks available
map
filter
reduce
forEach
Game Panel
0:00
0 pts
Level 4 of 11
Array 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