Feedback


#1

CAN ANYONE TELL ME HAT IS WRONG WITH MY CODE?! IT KEEP TELLING ME THERE IS A MISTAKE IN ELSE????

var feedback = prompt("Please rate our game with a number between 1 and 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.");
}

`


#2

Copy all of your code. Refresh the browser. Paste your code back in if it was deleted. Resubmit. If that didn't work, post all of your code in your next reply so we can have a look at all of it.


#3

confirm("I am ready to play")
var age = prompt("what's your age");
if(age<13){
console.log("youre alowed to play but I take no resposibility");
}
else
{
console.log("get playin foo");
}
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 our game with a number between 1 and 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.");
}


#4

Everything was good until I came to the feeback part -_-


#5

Are you using => or >= as your relational operator? The 2nd one is valid.

The instructions expect the > symbol:

If feedback is greater than 8, print out: "Thank you! We should race at the next concert!"


#6

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