Need help early on...sorry


#1

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;
console.log(hasPet);

and hit run, and got an error message.

Thanks!


#2

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