Intro to funtions


This is my code
var speed = 55
if (speed >80 {
console.log("Slow Down);}
else {
console.log("Drive Safe");

I am getting an syntax error please help


In your if statement, you have no closing parenthesis after 80.


@825orion I still get the same error


Send a link to the lesson please.




console.log("Slow Down)  // forgot to close.missed a "


You're missing a " after Slow Down.


@825orion @rcodeman Thank You!!!!!


Happy to help out. Good luck.


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