What is wrong! :(


#1

this is my code

var user = prompt("you see a strange jewel in the forest, do you TAKE the jewel, BRAKE the jewel, or LEAVE? ").toUpperCase();
switch(user) {
case 'TAKE':
console.log("darkness. when you come to, you arein a prison cell. IT WAS A TRAP!!!!"):
break;
case 'LEAVE':
console.log("you come home and forget everything the next day. all you can remember the next day is the blury outline of a person leaning over you."):
break;
case 'BRAKE':
console.log("you suddenly hear alrms go off and you rrun home unramed. all you can remember the next day is a wailing siren.");
break;
default:
console.log("that is not a valid answer.");
};


#2

it says SyntaxError: Unexpected token :


#3

@dr_snickerdoodle
console.log("you come home and forget everything the next day. all you can remember the next day is the blury outline of a person leaning over you."):

u are using wrong syntax : instead of ; , in the line mentioned above


#4

thx!! :smile: so much help!!!!!!


#5

@dr_snickerdoodle Happy coding