Introduction


#1

var speed = prompt("how many speed are u driving?");

// Complete the condition in the ()s on line 4
if (speed >= "80" ) {
console.log("Slow down");

}
else {
console.log("Drive safe");

}

What was wrong? could not fix


#2

What error are you getting?

Have you tried removing the quotes around the number 80 in your if statement.
It's meant to be a number and not a string.


#3

i got it (Oops, try again. It looks like you didn't print the correct string. Check your condition in the if statement, and your console.log statements) but when i put like 55, the code worked.


#4

Make sure you remove the quotes from the integer 80... and make sure your input in the prompt is an integer. if it doesn't work, refresh the page and try again.