3.adding some story


#1


Replace this line with your code. 

confirm("Are you ready to play");

var age = prompt("What's your age");

if(age > 13){
    console.log("You are allow to play.");
}

else{
    console.log("You are allow to play,but we take no responsibility to you");
}
    console.log("You are at a Justin Bieber concert,and you hear this lyric 'Lace my shoes off, start racing.'");

Error: Make sure your string is correct and is between quotation marks!


#2

Try removing this line.


#3

i've try it.still cant run.


#4

Other than that, code looks fine .. Try resetting the exercise maybe?


#5

i have been tried few times the code is couldn't run also.


#6


#7

Uhm weird. Try my code then, let's see if platform accepts it.

confirm("I am totally ready to play! =)");

var age = prompt("How old are you?");

if (age < 13) {
    console.log("Uh wow. Too young to play this game! However, you may continue - but our company takes no responsibility, under no circumstances.");
} else {
    console.log("Well well well! Get ready to ruuumbleee!");
};

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

#8

your code is work thank you...:grin:


#9

Cool, glad you can continue mastering JS :smiley: :+1:


#10

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