Introduction to Functions in JS


#1

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?


#2

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


#3

It still doesn't work.


#4

@byteplayer37030

It's Slow down with capital S


#5

Thank you!:slight_smile: