Need help again 6/7


#1

can you please help me

var feedback = prompt("Please rate my game from 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.");
}

best advice please


#2

I'm assuming the issue you're having has something to deal with this statement.

console.log("I'll keep practicing coding and racing.");

The issue is you need to get rid of the apostrophe between "I", and "ll".

I'm pretty certain that's the only error. Otherwise I see nothing blatantly obvious


#3

how you put " i put ' for the apostrophe


#4

I believe you can do something like this:

console.log("I\'ll keep practicing coding and racing.");

#5

it did not do it so how did you did it


#6

From w3 schools I qoute:
"You can use quotes inside a string, as long as they don't match the quotes surrounding the string:"

var answer = "It's alright";
var answer = "He is called 'Johnny'";
var answer = 'He is called "Johnny"';

Using \' is called escaping and most of the time not needed in javascript strings unless:

var answer = "He is called \"Johnny\"";

Prints: He is called "Johnny"

Only use \ when using the same " or ' in a string.

My code that works:

var feedback = prompt("Give us a rating out of 10 please?");
if(feedback > 8){
    console.log("Thank you!");
}
else {
    console.log("Screw you!");
}

Your code seems fine and i'v copy pasted it and it works

Are you sure the previous code is correct?
What is the red error text saying?


#7

thank you i finally got it!!!!!!!!!!!!!!


#8

i may need help on 7/7 please