Helping me resolve an issue


#1



7. more practice with switch


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.