Get an error when placing the name of the book

In the following line, register your favorite book or movie in the console … I get an error when placing the name of the book … example: console.log (‘what the wind took’); help please!

What does the error say?

try with the double quotes like this ->
console.log(“what the wind took”);
it will work, you are using single quotes, you want to print the string in a log.

1 Like

Do this: console.log(‘Diary Of A Wimpy Kid’);

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.