javascript - Choose Your Own Adventure (2) in Code Academy? -
while code technically running, nothing input while testing game gives me else answer. can take @ give me clue?
here:
var user = prompt("how cool you?"); var kind = true; var smart = true; var brave = true; switch(user) { case 'pretty cool': var personality = prompt("are kind or smart or brave (yes or no)?"); if(kind || smart || brave) {console.log("great.");} else {console.log("hmm...");} break; case 'cooler ice': var personality = prompt("are kind , smart , brave (yes or no)?"); if (kind && smart && brave) {console.log("prove it!");} else {console.log("are serious?");} break; case 'not cool @ all': var personality = prompt("are kind or smart or brave (yes or no)?"); if (kind || smart || brave) {console.log("i'm sure that's not true!");} else {console.log("well, i'm sure have qualities.");} break; default: console.log("well?"); break; };
change if from
if (kind && smart && brave) to
if(personality)
Comments
Post a Comment