programmingHS 2014
Shodor > SUCCEED > Workshops > Archive > programmingHS 2014

Eric started out the class by teaching the students about variables and array in JavaScript. He said that arrays are better to use when there are a lot of variables to set. Arrays are more useful and require less typing. The students learned how to create and modify arrays and use the appropriate syntax. Once the students learned the basics, they created a simple array. Eric and Phil helped students who had errors in their code. Phil introduced the students to “for” and “while” loops. Afterwards, students experimented with code they downloaded and changed the loops to see how it would affect the program. After break, students completed a variety of exercises. One of them included an exercise where the students created a while loop that generates a number between 0 and 100 and the student guesses what number it will be.