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
lesson3.js
×
THEEBUG
›
lesson3.js
1
const
fruits
=
[
"apple"
,
"banana"
,
"cherry"
]
;
2
3
for
(
let
i
=
0
;
i
<
fruits
.
______
;
i
++
)
{
4
console
.
log
(
fruits
[
i
]
)
;
5
}
TERMINAL
PROBLEMS
OUTPUT
DEBUG CONSOLE
⊕
⋮
$
[system] Theebug ready. Happy coding!
Code Blocks
Drag blocks into the drop zones above
4 blocks available
length
size
count
total
Game Panel
0:00
0 pts
Level 3 of 11
Array Length
0/1 slots correct
Objective
Use the correct array property to loop through all fruits and log each one
Expected Output
apple
banana
cherry
Debug says:
Arrays have a special property that tells you how many items they contain. Which one is it? Drag it into the slot after the dot!
Debug the Worm