Helping me resolve an issue


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
7. more practice with switch

<In what way does your code behave incorrectly? Include ALL error messages.>
i keeping getting incorrect syntax and i cant figure it out any help?

```

var answer = prompt(“Choose an option from Save us, Protect the planet and time travel guide.”);

switch(answer) {
case ‘Save us’:
console.log("I am sending the police to you now!);
break;
case ‘Protect the planet’:
console.log(“Skynet is now active commmencing saving the planet!”);
break;
case ‘time travel guide’:
console.log(“You have accessed the time travel information. Select 1 for help with building. 2 For help repairing. 3 For ■■■■■■■ up the past.”);
break;
default:
console.log(“The Machine is here to help.)”

}


#2

This line:

console.log("I am sending the police to you now!);

at the end of your string, a " is missing


#3

Dude cheers thanks so much


#4

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