JavaScript class and JavaScript homework

I’ve just had a go at doing the homework our tutor, Alex, set us at the end of last Saturday’s session – the first of three classes on Learn to write JavaScript at The City Lit. Doing a Saturday class is a bit of a killer, especially one that runs from 10am to 5pm.

This week’s homework came in two parts:
1. Write half a page of A4 on why you’re studying JavaScript;
2. Write some JavaScript to do a calculation similar to the make_triple one Alex talked us through at the end of session 1, demonstrating variable scope.

Here it is: Download file

And here is another example Phil talked me through: Download file