Switch practice .! Spot the mistake please


#1

var car = prompt("What type of car do you want?");

switch(car) {
  case 'sedan':
    console.log("Congratulation .! You won a sedan");
    break;
  // Add your code here!
  case 'suv':
      var suv = prompt(" a five seator or a seven seator ");
      switch(suv)
      {
         case 'five':
         console.log("Yes.! It's available Sir")
         break;
         
         case 'seven'
         console.log("Sorry Sir !  Not available .! ");
         break;
          }
          break;
  
  
  default :
  console.log("I don't thinks that's available sir ");
  break;
  
 }

#2

You're seem to missed the colon after seven.


#3

var car = prompt("What type of car do you want?");

switch(car) {
case 'sedan':
console.log("Congratulation .! You won a sedan");
break;
// Add your code here!
case 'suv':
var suv = prompt(" a five seator or a seven seator ");
switch(suv)
{
case 'five':
console.log("Yes.! It's available Sir");
break;

    case 'seven':
     console.log("Sorry Sir !  Not available .! ");
     break;
      }
      break;

default :
console.log("I don't thinks that's available sir ");
break;

}
you were missing a semicolon after case 5 console log and a colon after seven, that's what the main problem was