<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.>
don’t know how to make a link but here is my problem:
<In what way does your code behave incorrectly? Include ALL error messages.>
It says: Oops, try again. Make sure to use a break statement with each case!
and it comes out perfect and I do have break staments? here is my code.
var user = prompt(“Your parents bought a new house! But you hate it! It’s your average, everyday haunted house. Dark, creepy, spider webby. And guess what! The previous owner of this creepy old place, (an eighty year old woman with cats) just died. So, you go up to your room to unpack. As you unpack, you explore! The closet, the bed, Under the bed, and the walls. BORING! So you plop on the bed and dread the next seven years before college, which at the moment, doesn’t look too shabby.
You go to you suitcase The next day, to unpack the last couple things, and you find a shirt, you’ve never seen this shirt before. So you pick it up and put it in your closet. and in the closet is something odd, you haven’t seen before, sort of like a glow. And you pull the hanging clothes back and see a door! You drop the shirt in shock! It was never there before! and you try to open it. LOCKED! You pick up the shirt and see it has unfolded, and inside was a key! you smile and…”, “Do you OPEN it, NOT, or SAVE FOR LATER, type here!”).toUpperCase();
switch(user) {
case “OPEN”:
console.log(“Take the key and insert it to the keyhole, and twist! Inside the light is blinding, then slowly fades away, in the door it looks like a forest, you are puzzled. You look into room, into the forest, room, forest, room, forest. Extremely confused, you hear something…something…Beckoning you? ‘Come. Come!’ slowly it gets louder then softer, as if it is moving back and forth. I step inside to see who it is, and the door shuts. You’re trapped!”);
break;
case “NOT”:
console.log(“Take the key, and stick it into the key hole, But before you turn it, you decide not to and shove it into your pocket. Then you fold the shirt, and put it away. But you hear a voice, coming from the door, you turn. ‘Hello?’ you ask, but still, only this you hear: 'come, open the door. Come, open the door.'with a rithmac tune to it. You can feel the key warmer in your pocket. You know it’s psychological, but you still feel it, warmer, warmer still, a bit hot, quite hot, burning! You quickaly grab the key, and insert it and twist. The door opens with a blinding light. And inside is a forest, and the voice beckons you as you try and figure out this ‘sorrcery’ of sorts, and you step inside! The door slams! You’re trapped!”);
break;
case “SAVE FOR LATER”:
console.log(“Take the key and walk out of the closet, you can’t decide to open or not, and you think you should sleep on it, you set the key on your nightstand, and plop against the pillow. you then wake up and hear something, a noise you can’t really describe. you take the key, over to the door, your heart pounding. Boomp boomp, boomp boomp, boomp boomp. you can hear it. you walk to the door, insert the key and twist, and whats behind the door…is…! And then you jolt awake! grab the key and rush to the door, insert, twist, and the thing behind the door, was nothing, exept a forest and you step inside!”);
break;
default:
console.log(“Not sure if that’s a choice, try again.”);
}
<do not remove the three backticks above>