Switch


#1

hello, this is my code can not seem to find the syntax error in this code when i run it can someone help me out? would be greatly appreciated

. // Write your code below!
var driveGear = prompt("what driving gear are you on?");

switch(driveGear) {
case 'one':
console.log("going too slow, speed up!)
break;
case'two':
console.log( "get to gear three!")
break;
case 'three':
console.log( "alright, smooth sailing")
break;
case 'four':
console.log( "watch your speed")
break;
case 'five':
console.log(' whoah going too fast")
break;
default :
console.log ('your speed matters')
break;

};


#2

Is this the lesson page?

https://www.codecademy.com/en/courses/javascript-beginner-en-qDwp0/1/3

What error messages are you getting? Compiler errors appear in the console, SCT errors in the editor.


#3

it is lesson page
https://www.codecademy.com/en/courses/javascript-beginner-en-qDwp0/1/4

getting a SyntaxError unexpected token illegal.


#4

no worries, found the error.
it was lack of proper quotation marks,

thank you.