Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn For Loops Practice | Loops
New Script JS

bookFor Loops Practice

In this chapter, you'll have the opportunity to apply your knowledge of for loops by tackling a practical task in the Ninja Game. This exercise will help reinforce your understanding of loops and how they can be used to efficiently perform repetitive tasks.

Task

Swipe to start coding

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 2
ninja.js

ninja.js

index.html

index.html

preset.js

preset.js

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Suggested prompts:

Summarize this chapter

Explain the code in file

Explain why file doesn't solve the task

close

Awesome!

Completion rate improved to 3.57

bookFor Loops Practice

Swipe to show menu

In this chapter, you'll have the opportunity to apply your knowledge of for loops by tackling a practical task in the Ninja Game. This exercise will help reinforce your understanding of loops and how they can be used to efficiently perform repetitive tasks.

Task

Swipe to start coding

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

close

Awesome!

Completion rate improved to 3.57
SectionΒ 3. ChapterΒ 2
ninja.js

ninja.js

index.html

index.html

preset.js

preset.js

some-alt