Error on last if then statement


#1


At the end, I get an error message in the screenshot. The directions say to use greater than 8 in the last if/then statement. So I am not sure what the issue is. 
<img src="//codecademy-discourse.s3.amazonaws.com/original/5X/9/1/0/e/910e02aab6127718c26e2597e3a6604ed4f52e55.png" width="689" height="224">


#2

do you think that you could send the link and your code? I cant check your screenshot.


#3

// 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 take no responsibility, but you can play!")
}

else
    {
        console.log("You are free to play. Good luck!")
    }

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("Please rate the game out of 10")

if(feedback>8)
{
console.log("Thanks")
}
else {
console.log("Whatever")
}


#4

the error is "oops it looks like you didnt print the less than or equal to message


#5

Still not sure of the issue. I chage the last part to:
var feedback = prompt("Please rate the game out of 10")

if(feedback<=8)
{
console.log("Thanks")
}
else {
console.log("Whatever")
}

but i still get the error:
Oops, try again. It looks like you didn't print the less than or equal to 8 message.


#6

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