Hello, I am trying to understand the logic behind adding if/else statements to cases as requested by the assignment. If the code asks for a "prompt" it only allows 1 entry, how can it check for multiple conditions? Also in a realistic coding situation where could this be helpful? Thanks in advance for any response.
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.
Here is my code for a simple Batman "Code your own adventure"
var user = prompt("The time has come to pass the torch.. What is your name?").toUpperCase();
console.log("Jason Todd? Interesting");
console.log("Are you related to the greyson family?");
console.log("Already a sidekick?");
console.log("I'm sorry.. you dont posess the necessary skils..Alfred will see you out...");