Explore scope by moving the count variable so it is the first block of code inside the repeat loop. Next, run the program. Why is the value of the count variable staying at 1?
Coding:
Hotkey Shortcuts
Move BlocksUP or DOWN or TAB
Run Program ALT + SHIFT + R
Stop Program ALT + SHIFT + S
Hide Tray ALT + SHIFT + X
Zoom In ALT + +
Zoom Out ALT + -
Open Help ALT + SHIFT + H
Navigate to Tray ALT + 1
Navigate to Blocks ALT + 2
Enter Navigation Mode SHIFT + ENTER
Blocks
Hint
Great job!
Try again
When the count variable is moved into the loop, it resets. On each run of the loop, the variable count is created and one is added to the count's starting value of zero. At the end of each run of the loop the count variable is then destroyed(no longer exists in memory).