Get an error when placing the name of the book


#1

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!


Javascript help
#2

What does the error say?


#3

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.


#4

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


#5

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