Gallery
Solution Debug 7.2. Easy 123
Share
Explore
Solution Debug 7.2. Easy 123

icon picker
The Task

Activity: Debug 7.2 Easy as 1,2,3 🐞

Start Here

A bug report has been has been submitted on this program.
This program should display the 10 toon characters in the array but it only shows the same one 9 times! We think there is something weird going on with the head of the loop and also the code for displaying the output.
Can you help fix it?
Run and explore the program to identify errors.
Refer to the code clips below to help you fix the errors.
Right click on your code and add a comment explaining what was wrong and how you fixed it.
Good luck! 🍀

Sample output

Cartoon Favourites

1 : Baymax
2 : Buzz
3 : Lightning McQueen
4 : Sulley
5 : Nemo
6 : Crush
7 : Forky
8 : Bo-Peep
9 : Rex
10 : Boo
Share
 
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.