Help: Trying to declare a variable

Hi My student is trying to declare a variable up top but it’s not working.

He needs to change the line to var x = 1;