No lecture! Just a long activity in troubleshooting and debugging. I am envisioning the students pairing up to work on the debugging tasks in this in-class-activity.
This was previously an “assignment” but I have rebranded it as an ICA as I found that most students were able to do it all in class.
I think one or two of the debugging steps is particularly evil. Rest assured, I will give you all guidance.
And.. for the record… *I KNOW* that JavaScript supports exponentiation with Math.pow. I didn’t use that, on purpose, because I wanted to have a function with a loop in it, and the power() function was all I could think of.
-Shafer