Adding some story


#1



i couldn't find where is the mistake

Replace this line with your code.


Here is my code:
#2

Have you verified that each string is exactly the same as in the instructions?
If not, then you know what to do!


#3

yes I did exactly as the instructions said but I don't know where is the error!


#4

Link the exercise.

I better not find one of your strings to be different!


Here is my code:
#5

Continuing the discussion from Adding some story:



confirm("I am ready to play!")// Check if the user is ready to play!
var age=prompt("What's your age")
if (age<13)
{
    console.log("you are allowed to play but we take no responsibility!!");
}
else 
{
    console.log("go on the game is waiting for you!");
}

console.log("You are at a Justin Bieber concert, and you hear this lyric 'lace my shoes off, start racing.'")


#6

If I had a link to the exercise I could find out what the problem is, right now I only half the information. I asked for a link but I'm not sure if you noticed.

You posted your code in a new thread, I merged that back in here.


#7

thanks I figured it out


#8

confirm("I am ready to play!")// Check if the user is ready to play!
var age=prompt("What's your age")
if (age<13)
{
console.log("you are allowed to play but we take no responsibility!!");
}
else
{
console.log("go on the game is waiting for you!");
}

**console.log("You are at a Justin Bieber concert, and you hear this lyric 'lace my shoes off, start racing.'") ; ** (u forgot about Semicolon)


#9

thanks for your help


#10

// Check if the user is ready to play!
confirm("Do you wanna play?");
var age = prompt("What's your age");
if (age <13){
console.log("You play but I won't take the responsibility");
}
else{
console.log("Ok, let's play");
}
console.log("\"You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'\"");

Hello, I have this piece of code because it is said that the introduction should to appear between quotes and it keeps me saying: "Make sure your string is correct and is between quotation marks" why ?


#11

whats with the funky "\" and '\""?

you only need one set of " " to wrap the whole thing and then ' ' for the lace part.

Like so :

console.log("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'");


#12

but use " " can't pass


#13

I know it i try " " can't pass but I use "\"......."\" enter save&submit code button can't pass too ,in this time
I delete "\"......"\" become " " can do it.