jeudi 5 novembre 2015

This stupid codecademy course is asking me to produce if/else statements

It sucks that I have to write code in such a stupid program like codecademy. Here's the instructions they gave me and the code, am I doing something wrong?

Let's briefly review! Use an if / else to check how fast you're driving.

If speed is greater than 80, use console.log to print "Slow down" Otherwise (else), use console.log to print "Drive safe"

var speed = 65;

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

It prints out errors. wtf am I doing wrong?

Aucun commentaire:

Enregistrer un commentaire