Incorrect (unless x has already be initialized):
x = name;
Correct (initializes a variable named x and assigns a value):
var x = name;
var x = 3 ^ y;
Instead, you have to use the Math object like this:
var x = Math.pow(3, y);
One skill that we practiced quite a bit this week was doing desk checks. This is a way to manually work your way through a program by hand to follow the value of variables as they are assigned or changed. I’m not sure at this point if it is a practical skill for programming, but I do know it helped me understand what was happening with within the code as I ran examples.