
TimothyDrake

I am in the midst of learning Blocky and when I updated the program I noticed a dollar sign appear in front of all my Variables. At first I ignored it but then I noticed a program would not run like in the online tutorial.
I have attached an image with a screen shot where JD is supposed to count down from 10 to 1 and then say Happy New Year. When I duplicate the program and run it JD will only count from 10 to 2 and then says Happy New Year. He does not say 1 as he is supposed to and does in the demo video. https://youtu.be/MRcSs-ImcF4?t=410
You can see in the screen shot that my blocky is the same as the tutorial yet I am getting different results.
Best Regards,
Tim
A $ in javascript variable means it is public/global. Blockly generates JavaScript, which means the variables will be private by default. To be public, the variables can start with a $ (dollar sign).
EzAng
My point was not to actually make a countdown. My point was that my program gave different results than the sample I was following and that concerned me. DJ addressed it. I appreciate the tips though.
Best,
Tim
EzAng
Forgive me if I am missing something but when I click the link it just leads me back to my original post. I see that the Beta was updated so I will download it. Thanks
Best,
Tim