Js. Introduction - Please help!


#1


Can someone please help me with this. I don't understand what I'm doing wrong. Everytime I put in my code, the same message appears: SyntaxError: Unexpected token :

I've refreshed the browser and have reset the code but it still comes up with the same error. Can anyone help me out with this please?

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


var speed = 65

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


#2

@jasmeetv,

Have a close look at

console.log("Slow down"):


#3

Ahh thank you! I noticed my error after I posted it on here.

I always make the tiniest mistake!


#4

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