3/7 Bieber concert need help!


#1

// Check if the user is ready to play!

confirm("I am ready to play!");
var age=prompt("What is your age");
if(age<13)
{
console.log("You are too young to play.");
}
else{
console.log("Jump in and play!");
}
console.log("You are at a Justin Biever concert, and you hear this lyric 'Lace my shoes off, start racing.'");

I get "It looks like you didn't print the introduction."


#2

you wrote Biever instead of Bieber it has to be exact i think


#3

Just copy and paste the text in the instructions
"You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'"
it will work :+1:


#4

The story heats up!
Now you have to create different scenarios. Good thing we know how to do that using if / else statements.

If userAnswer is "yes", print out: "You and Bieber start racing. It's neck and neck! You win by a shoelace!"

Otherwise, print out: "Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'"

Remember: = is for assignment, and === is to check if things are equal!

Instructions
Use an if / else statement to write out the last part of this game!

Make sure to check the console for error messages and suggestions for how to fix them.

Hint
Cut and paste the sentences that you have to print out to avoid typos. If you don't type things exactly right, things don't work!

Remember, if/else works like this:

confirm("are you ready to play?");
var age = prompt("What is your age?");
if (age <= 13){
console.log("You can play but we take no responsibility, ask your parents for permission!");
} else {
console.log("good luck and enjoy the game");
}
console.log("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'")
console.log("Suddenly, Bieber stops and says, 'Who wants to race me?'")
var userAnswer = prompt("Do you want to race Bieber on stage?")
if (userAnswer === "yes"){
console.log("You and Bieber start racing. It's neck and neck! You win by a shoelace!")
} else {
console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'")
}

var feedback = prompt("Rate 1-10");
if (feedback >= 8){
console.log("Thank you! We should race at the next concert!")
} else {
console.log("I'll keep practicing coding and racing.")
}


#5

what am i even doing wrong....
// Check if the user is ready to play!
confirm("Are you ready to play?");
var age = prompt("What's your age");
if (age < 13) {
console.log("I am sorry you are too young for such material");}
else {
console.log("You are allowed to play");}
console.log("You are at a Justin Bieber concert,and you hear this lyric 'Lace my shoes off, start racing.'");


#6

I think you forgot a space between the comma and the "and"

Bieber concert,and you hear this 
              ^
     Put a space between the " , " and "and"

#7

haha yes i did forget that! ugh gotta watch out for the spaces. thanks!


#8

I swear, I have copied and pasted exactly what it says, but it keeps telling me to check it. It won't let me move on, and I'm going crazy. Here's what I have:

// Check if the user is ready to play!
confirm("I am ready to play!");

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

if(age < 13) {
console.log = ("You can play, but we are not responsible.");
}

else {
console.log = ("Let's play!");
}

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

WHAT IS WRONG!? It says, "Oops, try again. Make sure your string is correct and is between quotation marks!" But I copy/pasted it!


#9

check the bolded, is lyric the same thing written there?