In a previous blog article, I talked about using Kodables to teach kindergarten students how to computer program — eventually to write JavaScript. The first lesson was based on sequence. Programmers need to tell what computers what to do in the correct order. If one of your computer program statements is not in the right order, the computer program will not produce the correct result. The students learn that by placing directional arrows in the right order so that their Fuzzball (fictional creation) traverses a path and picks up coins.
The second lesson is based on conditionals. Conditionals often appear in computer programs as “if” statements.
Dynamic Drive example that allows a button to toggle between opening and closing a menu
To illustrate the concept to students, they drag and drop a colored square onto the sequence to indicate:
- if my Fuzzball comes to a square that matches the color, take the action indicated by the directional arrow
Here is the first…