Js. Introduction - Please help!


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?


var speed = 65

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



Have a close look at

console.log("Slow down"):


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

I always make the tiniest mistake!


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