Intro to funtions


#1

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


#2

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


#3

@825orion I still get the same error


#4

Send a link to the lesson please.


#5

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


#6

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

#7

You're missing a " after Slow Down.


#8

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


#9

Happy to help out. Good luck.


#10

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