Bieber part 6


#1

I have problems regarding the feedback. Here's my source code:

confirm("I am Ready to play!");

var age = prompt("What's your age?");
console.log (13)

if (age < 13)
{
console.log("Get outta here!");
}
else
{
console.log("Time to rock!");
}
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" === "no")
{
console.log ("You and Bieber start racing. It's neck and neck! You win by 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 ("Out of '10', how you enjoyed the game?");

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

But in the end, i just got an error message, "Oops, try again. It looks like you didn't print the less than or equal to 8 message."

I am stuck on this part. Please help!


#2

In the directions it says "greater than 8." so change:

if (feedback >=8){

to
if (feedback > 8){


#3

i did this lolman and its still showing me a problem


#4

What's the error message that you're receiving?


#5

Your code doesn't work because of one silly little thing...

Here is your code...

else
{
console.log("I'll keep practicing and racing.");
}

Your mistake is that you didn't put the word CODING between the words 'practicing' and the word 'and'. So, your code should be...

else {
    console.log("I'll keep practicing coding and racing.");    
}

#6

Didnt see that coming. Thanks bro.