![]() ![]() |
| |||||||||
| Hotspots: Slides and Code TA Corner Comments? Announcements FAQ Static Webspace | ||||||||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Think about what a for loop and a block actually make a program do. Break it down step by step. Lauren Biddle |
| There's only one function here. Functions have their own contexts, but not blocks. That's all the same value. Mark Guzdial |
| Walk it through, one line at a time, writing down the value of the variables at each step. Mark Guzdial |
I you you you you walrus 4
| If you are still having trouble with walking this out, use the "Watcher" button in JES: before you run the code, click on "Watcher". Click "Add Var" and then when prompted type "value". Then execute your recipe. The Watcher will trace out every step that it completes and it will tell you the numerical value of "value" at each step. Lauren Biddle |