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

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -