I encountered this problem. Can anyone explain to me?
#3. More person info, to Write your name
, phone
, and address
in the console, on separate lines.
I entered the following on a separate text editor, copied and pasted it on the google chrome console, I still encountered Invalid or unexpected token. When I looked at the cheat code, it is one of the ways to do it. What did I do wrong?:
console.log(“John”);
console.log(“123-456-7890”);
console.log(“Toronto, Canada”);
1 Like
Try this –
console.log('John');
console.log('123-456-7890');
console.log('Toronto, Canada');
Changed the double quotes to single quotes.
Thanks for your suggestion, but still invalid or unexpected token message appeared.
I copied and pasted your entree and it worked on my macbook air, but didn’t work on my macbook pro. i don’t know what I am doing wrong. Thanks, anyways. I am using the first suggestion on the cheat code to enter them in separate lines.
Thanks, again.
I’ve finally solved my issue using my macbook pro. i used Shift + Enter and got them to work. Thanks.
1 Like