Choose Your Own Adventure 2!What can add?


#1


Course Forum Section 1 Arrested Development. Add if/else statements to...


I can not figure what can add to if else statement because need (Add some if/else statements to your cases that check to see whether one condition and another condition are true, as well as whether one condition or another condition are true. Use && and || at least one time each.)WHAT CAN I ADD?


 
var user = prompt("You and your horse at divarication what to choise? On Left lose horse,on RIGHT die ,Forward find destiny").toUpperCase();
switch(user){
    case'Left':
        console.log("You go to the left and unexpected horse broke his leg by the pit on road you must kill it");
        break;
        case'Forward':
            console.log("You choise forward, after several days you met Jesus!");
            break;
     case'Right':
            console.log("you died but reborn like Pheonix and you know what you are born to..");
            break;
    default:
    console.log("ONLY THREE OPTIONS-RIGHT-FORWARD-LEFT-?");


#2

check your curly braces


#3

You should ask some questions, like: is your horse strong? if it is strong you dont break a leg. or is your horse fast? if it isnt fast you dont meet jesus cause he left.
See what i am hinting? just adapt your code so it fits the story.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.