Feedback loop happens twice?


#1

Everything works great till I get to this block and when I run it repeats the feedback prompt before executing the if/else. Any help appreciated.

// feedback

var feedback = prompt("Rate the game 1 to 10 with 10 being the absolute best ever?");

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


#2

Yea its suppose to do it


#3

Not sure you understand..it asks for the rating twice before executing the if loop. So you have to enter 9 twice, or you can enter 3, then 10...It only takes the second value.


#4

I figured it out. Thanks.