Зміст курсу
Ninja Game
Ninja Game
Functions Practice
In this chapter, you'll have the opportunity to practice writing functions in JavaScript. Functions are a fundamental part of programming that allow you to encapsulate a set of instructions and reuse them throughout your code. By practicing writing functions, you'll become more comfortable with structuring your code in a way that is both efficient and easy to understand.
In the previous chapter, you learned how to define and call functions. Now, it's time to put that knowledge into practice.
Swipe to show code editor
Goal: Collect all sushi.
Use the function lootDiagonal(ninja)
to navigate and collect sushi.
Рішення
Starter Map
Дякуємо за ваш відгук!
ninja.js
index.html
preset.js
Functions Practice
In this chapter, you'll have the opportunity to practice writing functions in JavaScript. Functions are a fundamental part of programming that allow you to encapsulate a set of instructions and reuse them throughout your code. By practicing writing functions, you'll become more comfortable with structuring your code in a way that is both efficient and easy to understand.
In the previous chapter, you learned how to define and call functions. Now, it's time to put that knowledge into practice.
Swipe to show code editor
Goal: Collect all sushi.
Use the function lootDiagonal(ninja)
to navigate and collect sushi.
Рішення
Starter Map
Дякуємо за ваш відгук!