Intro to Functions Help, please


It keep saying I printed the wrong string, but I've done both.

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 safe.");


Do you need to print both string? if so your comparison should be true. In your case it only going to print "Drive safe"


I guess what the SCT (test function) is complaining about is that there is a additional "." at the end of your sentence. Might seem a bit picky but "Slow down." == "Slow down" would be false.