Need the best advice 6/7


#1


#2

Your if-else code doesn't seem to be formatted correctly. The if-else section is empty, and the console.log() functions are after it, enclosed by random brackets as opposed to the brackets in the if-else statements. Move the first console.log() into the brackets between the 'if' and the 'else,' and the second one in the first bracket pair after the 'else.'

You also need to create a variable called 'feedback' and assign user input to it using 'prompt().'


#3

that doesn't make sense to me? more advice? with a cherry on top🍒


#5

You need to put the second console.log() in the braces for the if statement, and the third console.log() in the braces after the else statement. Currently, the braces for the if-else statements are blank and your console.log() statements are in other braces. You also need to create a variable called "feedback," and your first console.log() statement should be replaced with prompt().


#6

did i fix this
var feedback = prompt("Please rate my game 1 to 10!");
if (feedback > 9) {
console.log("Thank you! We should race at the next concert");
} else {
console.log("I'll keep practicing coding and racing.");}


#7

Your code looks right to me! You just need to replace 9 with 8. :smile:


#8

thanks you you must be the best coder


#9

doesn't work at all.
var feedback = prompt("Please rate my game 1 to 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.");