title: Javascript nesting switch statement
body: <p>I am new to Javascript and I am learning about switch statements. My code is trying to run two tiers of switch statements and validating data. My desired output would be to have the user input either a YES or a NO and if YES is selected then it will go through the switch statement however if anything other than YES is selected then it will output "Too Bad!" to the console. I am having compiler errors and I am not sure how to fix this because I don't fully understand javascript syntax to the fullest. </p>
  
  <pre><code>var user = prompt("Welcome to learning about exceptions with me, A-rod. 
  In this tutorial we will be learning about exceptions and what not 
  to do with them. Let's get started, shall we? ").toUpperCase(); 
  
  switch(user){
      case 'YES'
       var user_1 = prompt("What's your name?"); 
       switch(user_1) {
          case 'Buster':
              console.log("Hey, brother!");
              break;
          case 'Alex':
              console.log("I've made a huge mistake.");
              break;
          case 'Steve':
              console.log("Steve Holt!");
              break;
       default:
           console.log("I don't know you!");}
  break; 
  default:
      console.log("too bad!"); 
   }
  </code></pre>
  
  <p>The errors are</p>
  
  <blockquote>
    <p>"expecting ':' instead of 'var' " </p>
  </blockquote>
  
  <p>and </p>
  
  <blockquote>
    <p>"expecting '(end)' instead of 'default' " </p>
  </blockquote>