Expected ')'


#1

var user = prompt("You walk and find a big ass rock in the middle of the road. Do you SMASH it with your sword? JUMP over it? or turn BACK?")

switch (user) {
case 'SMASH':
var weapon = prompt("What weapon you wanna use? Flail,Mace,Rapier,Sword,Lance, Shotgun, Action rifle, RPG")
if (weapon === Flail) {
console.log("You swing your flail all around the place hitting everything in your path as you charge on the rock. At last you reach the rock and you charge and throw the flail with perfect accuracy making the rock scatter in a million pieces"); }

                else if (weapon === Mace) {
     console.log("You notice you have a mace in your bag. You grab it and while doing some crazy stunts you accidentally hit yourself.(GG you are officially dead) what an idiot!"); }
                else if (weapon === Rapier) {  
    console.log("You take your rapier out and with unrelentess force you run and smash through a hole in the rock. What a guy"); }

                else if (weapon === Sword) {
    console.log("You pick a sword from the ground nad by doing some crazy juggling with it you manage to carve a Z on the rock. You didn't break it but you make it look like you are Zoro"); }

                else if (weapon === Lance) {
    console.log("You take some steps back (about 2 miles) and you charge holding your lance to the right hand and a book to the left hand (You needed the book in order to walk without getting bored) you have reached about 100 mps as a result by the time you reach the rock it already has a big hole in the middle. Big enough for you to fit through it"); }

                else if (weapon === shotgun) {
    console.log("Bingo! You go on the rock and shoot it with all the force you can put in your hand. The rock is made into a pulp of very small pieces and dust. Quite a powerful shotgun you have there friend"); }

                else if (weapon === Action rifle) {
    console.log("You reload your AK 47 and take a few steps back, you were only a silver in CS:GO so obviously your aim is crap and you spend the whole magazine on shooting the rock but never actually hitting it. The joy. GG you lose"); }

                else if (weapon === RPG) {
    console.log("You take a step back and you get ready to shoot the rock. BOOM the rock is hit but so are you. You get your miserable feet, black from the gunpowder over them you sit on your knees and you pray (God, why am I such an idiot? 1 feet wasn't good enough.) GG you die"); }
                else {
    console.log("Do as you're told");
    }
    break;
case 'JUMP':
    console.log("You wait for a second focusing all your weight to your feet and watching it as it leaves the globe. You take a couple of steps back and you run so fast not even a ferrari could match your speed");
    break;
case 'BACK':
    console.log("You turn back? Seriously? What are you 12 years old? Damn, man I had hope in you... Now I have to find another guy to do that. Thanks a bunch man");
    break;
default : 
    console.log("You can't do that bro...");

)}


#2

A prompt() Method will allways return a string Value.
Thus your
var weapon = prompt("....");
will leave you with a variable weapon
with expected string Values
"Flail", "Mace", "Rapier","Sword", "Lance", "Shotgun", "Action rifle", "RPG"
and
it will be one of those possible string Value's you must use
in one of your comparisons in your IF and ELSE IF conditions
like
( weapon === "Flail" ) or ( weapon === "Action rifle" )


#4

var user = prompt("You walk and find a big ass rock in the middle of the road. Do you SMASH it with your sword? JUMP over it? or turn BACK?")

switch (user) {
case 'SMASH':
var weapon = prompt("What weapon you wanna use? Flail,Mace,Rapier,Sword,Lance, Shotgun, Action rifle, RPG")
if (weapon === "Flail") {
console.log("You swing your flail all around the place hitting everything in your path as you charge on the rock. At last you reach the rock and you charge and throw the flail with perfect accuracy making the rock scatter in a million pieces"); }

                else if (weapon === "Mace") {
     console.log("You notice you have a mace in your bag. You grab it and while doing some crazy stunts you accidentally hit yourself.(GG you are officially dead) what an idiot!"); }
                else if (weapon === "Rapier") {  
    console.log("You take your rapier out and with unrelentess force you run and smash through a hole in the rock. What a guy"); }

                else if (weapon === "Sword") {
    console.log("You pick a sword from the ground nad by doing some crazy juggling with it you manage to carve a Z on the rock. You didn't break it but you make it look like you are Zoro"); }

                else if (weapon === "Lance") {
    console.log("You take some steps back (about 2 miles) and you charge holding your lance to the right hand and a book to the left hand (You needed the book in order to walk without getting bored) you have reached about 100 mps as a result by the time you reach the rock it already has a big hole in the middle. Big enough for you to fit through it"); }

                else if (weapon === "Shotgun") {
    console.log("Bingo! You go on the rock and shoot it with all the force you can put in your hand. The rock is made into a pulp of very small pieces and dust. Quite a powerful shotgun you have there friend"); }

                else if (weapon === "Action rifle") {
    console.log("You reload your AK 47 and take a few steps back, you were only a silver in CS:GO so obviously your aim is crap and you spend the whole magazine on shooting the rock but never actually hitting it. The joy. GG you lose"); }

                else if (weapon === "RPG") {
    console.log("You take a step back and you get ready to shoot the rock. BOOM the rock is hit but so are you. You get your miserable feet, black from the gunpowder over them you sit on your knees and you pray (God, why am I such an idiot? 1 feet wasn't good enough.) GG you die"); }

                else {
    console.log("Do as you're told");
    }

    break;

case 'JUMP 
    console.log("You wait for a second focusing all your weight to your feet and watching it as it leaves the globe. You take a couple of steps back and you run so fast not even a ferrari could match your speed");
    break;
case 'BACK':
    console.log("You turn back? Seriously? What are you 12 years old? Damn, man I had hope in you... Now I have to find another guy to do that. Thanks a bunch man");
    break;
default : 
    console.log("You can't do that bro...");

}

Now I get an Unterminated string constant


#5

Have a look at your case statements...

= = = = = = = = = = = = = =

nice to know

You could test in labs.codecademy.com
choose Javascript
You will get a split-screen
In the left-hand-side you paste-in your code
click on the Run button.
The right-hand-side is the console

references

www.crockford.com --> for most respected guide-line in Javascript
like coding convention
www.crockford.com
http://javascript.crockford.com/code.html
http://javascript.crockford.com/survey.html