If / else Statement


#1


https://www.codecademy.com/courses/javascript-beginner-en-6LzGd/0/1?curriculum_id=506324b3a7dffd00020bf661#


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.


var speed = 65;

// Complete the condition in the ()s on line 4
if (speed > 80) {
	// Use console.log() to print "Slow down"
	console.log("Slow down");
} 
else 
{
	// Use console.log() to print "Drive safe"
    console.log("Drive save");
}


#2

you're printing "drive save" not "safe"


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.