Javascript:code your own adventure


#1


https://www.codecademy.com/courses/javascript-beginner-en-x9DnD/0/3?curriculum_id=506324b3a7dffd00020bf661


Not able to proceed even when i have followed the instructions....Pls help


// Check if the user is ready to play!
confirm("R U ready");
var age;
age=prompt("What's your age");
if(age<13){
    console.log("You are allowed to play under your own responsibility");
}
else{
    console.log("You can play");
}
console.log("\"You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'\"");


#2

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

delete these extra double quotes, you dont need them anyway!


#3

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

This is the error i get.....


#4

Thanks its done......i just had to remove the double quotes


#5

one more thing..
Correction!
this was correct..

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

This is also correct that I mentioned..

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

so you can use any of them!
cheers! :thumbsup:


#6

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