Page 61 - Computer_Genius_v2.1_C7_flipbook
P. 61
Prepare the project in MakeCode Arcade as shown below:
When you run the project the output from initial stage to final stage are as follows:
Initial Stage Final Stage
Notes
You can also see JavaScript /Python code equivalent to given block code in
MakeCode Arcade.
For Loop
The for loop is a counting loop, which is useful for situations where you need a counter variable that
can be used within the loop. It repeats a block of code a specific number of times, like the repeat
loop, but with more control over the iteration process.
Let us create a project in MakeCode Arcade that demonstrates the use of for block to display number
from 0 to 10. Prepare the project in MakeCode Arcade as shown below:
Advanced MakeCode Arcade 59

