Feedback loop happens twice?


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!");
console.log("I'll keep praticing coding and racing.");


Yea its suppose to do it


Not sure you 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.


I figured it out. Thanks.