During this lesson I learned that a lot of students really were struggling with using variables. Many wanted to “store” information in labels, rather than use the variables.
We also took a break at this point in the curriculum to do the Explore. SO, kids had a few weeks off from programming and I wanted to ease them back into things. Sometimes I get concerned that when they are at their computers, it can be difficult for me to assess who is really struggling or not, unless students advocate for themselves which isn’t always the case. It is not until they get behind that I can really target them as much as I like.
SO, I made this “Around the World” activity for students - there are 22 code snippits with an answer written at the top. The answer is NOT the answer to the problem on the page. The idea is that once they get an answer (in this case, what the console.log prints out), they have to go to the sheet of paper with the answer for the previous problem written at the top. The idea is that if students do it right, they make it to all of the different problems.
This went over fairly well for the following reasons:
-
Getting students up and moving is always better than sitting (especially for a Monday after lunch!)
-
I could hear students’ thought processes as they talked through them with their partner. Some of the answers were similar (aka, GoMustangs, GoGo, Mustangs) so they had to KNOW that their answer was correct - it was also a way for self-checking their work. If they got “12” as an answer and there was no page with “12” at the top, they went back and re-thought about it.
-
It forced students to think about the outcome. Sometimes I felt like there was a good amount of guessing and checking going on in the code. It was fine, but I also want to push some students to think a bit more. This forced the thinking.
-
This is perhaps a hopeful “win” but I also wanted students to remember that a console.log statement is a helpful de-bugging strategy. Since they saw so many of them on this activity, I am hoping that caries over to what we do next!
I’d love to hear others’ thoughts on this! Do you have students read code? Are your students also using labels as variables?