Need help early on...sorry


I’m supposed to “create another variable named hasPet, and set it equal to a boolean.
Then, print it to the console with console.log.” I wrote:

var hasPet = false;

and hit run, and got an error message.



Just got the option to get answer, and the answer is the same as mine, only now it runs it fine. I’m confused.