Confusion


#1

var answer = prompt("What are the first 3 numbers of your number?").toUpperCase();
var user
switch(answer) {
case'269':
if(answer === 269){
console.log("Your from around here ehh");
}
else{
console.log("Your not from here. Are you?");
}
break;
case'517':
if(answer === 269 || 517){
console.log("Then your from southwestern michigan");
}
else{
console.log("Your not from here. Are you?")
}
break;
case'359':
if(answer === 269 && 359){
console.log("You have a weird phone number");
}
else{
console.log("Your not from here. Are you?");
}
break;
y
default:
console.log("I don't know where those area codes are.");
}


#2

@19reincrsbcamsc_org,

var answer = prompt("What are the first 3 numbers of your number?").toUpperCase();
var user;
switch(answer) {
 case'269':                  //'269' as =string= Value
   if(answer === 269){       // 269  as =number= Value ??!
       console.log("Your from around here ehh");
   }
   else{
       console.log("Your not from here. Are you?");
   }
   break;
 case'517':
   if(answer === 269 || answer === 517){
       console.log("Then your from southwestern michigan");
   }
   else{
       console.log("Your not from here. Are you?")
   }
   break;
 case'359':
   if(answer === 269 && answer === 359){
       console.log("You have a weird phone number");
   }
   else{
       console.log("Your not from here. Are you?");
   }
   break;

 default:
       console.log("I don't know where those area codes are.");
}