Introduction to Functions in JS


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”)

What am I doing wrong?


Remove the quote marks so it is a variable compared to a number literal.


It still doesn’t work.



It’s Slow down with capital S


Thank you!:slight_smile: