I feel that there's something wrong, what the parpose of && and || ? cause they did nothing!


#1

var user = prompt("do you want to play?");

 switch(user) {
  case 'yes' :
      console.log("ok let's go");
      break;
    case 'no' :
        console.log("come on !!");
        break;
    case 'later' :
        console.log("fuck you");
        break;
    default :
    console.log("..please answer..");
    break;
 }
  var answer = prompt("Are You Ready??!!").toLowerCase();
 switch(answer) {

    case 0:

        if(yes && no ) {
            console.log("great!");
        }
        else {
            console.log("-_-");
        }

        break;
  case 1:
      if(later || no) {
          console.log("-_-");
      }
      else{
          console.log("ok");
      }
      break;
 }

#2

Can you please edit your post and put the code between three backticks (`) like this:

```

your program

```

Also if you can share your error message and a link to the lesson it would be very helpful to those trying to help :slight_smile: