Codecademy Moderator HELP!


#1



I need help because I don't know how to contact a codecademy moderator.
But if you either don't know how too, or can just fix my code on your own, here it is:


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("You 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("You 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("You 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 " + user + " is a choice, try again.");
}


feel free to tell me your input on the story, like if you Like it or not.
So it comes out perfectly, how I want it to. But it says:
"Oops, try again. Make sure to use a break statement with each case!"
even the prompt works.


#3

@heammawihio,
Which section is this ???
as there is no nr.10


#4

Why are you asking specifically for a moderator? In this community everyone helps eachother out. You don't need a moderator. @leonhard.wettengmx.n who posted above is one of the best posters I've personally seen, and he's not a moderator.


#5

@leonhard.wettengmx.n It's this lesson


#6

@heammawihio,
You are writing a Book.........
The prompt will only have 3 visible lines......

I tried you Original code and got the same error

With the following code i got a pass

    console.log(
     "Your parents bought a new house! \n\nBut you hate it")
var user = prompt(
     "Do you OPEN it, NOT, or SAVE FOR LATER, type here!").toUpperCase();
switch(user) {
    case "OPEN":
        console.log(
            "You take the key and insert it to the keyhole, "+
            "You're trapped!");
    break;
    case "NOT":
        console.log(
            "You take the key, and stick it into the key hole, "+
            "and you step inside! The door slams! You're trapped!");
    break;
    case "SAVE FOR LATER":
        console.log(
            "You take the key and walk out of the closet, "+
            "exept a forest and you step inside!");
    break;
    default:
        console.log("Not sure if " + user + " is a choice, try again.");
}

#7

what does

mean? and the prompt works too


#8

@heammawihio,
Yes the prompt() does work,
but your very-very-extended text's shootup the code-checker software......


#9

oh so whatdoes the

do?


#10

@heammawihio,
Have a look at the so-called escape-notations
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String


#11

so If I run your code what happens


#12

To the prompt I mean, when you use the new line