Problem in displaying double quotes, Pls help


#1

strucking at Adding some story!

Oops, try again. Make sure your string is correct and is between quotation marks!


Replace this line with your code. 


// Check if the user is ready to play!
var str = "\"you are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'\"";
//var str = "My \"String\"";
console.log(str);
confirm("r u ready to play");
var age = prompt("what's yr age");
console.log(age);
if (age < 13)
{
    console.log("u r allowed to play with yr own responsibility");
}


#2

I'm curious about this line. Did you have to create a variable for that text string? Is the text string from the instructions the same as "\"you are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'\""?


#3

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