Help!


#1

Why is wrong with my code every time for example when I put in Corvette or Ferrari It prints out the default?

Here's code

var user = prompt("What Car would you like to own?").toUpperCase();

switch(user) {
case 'Ferrari':
console.log("Good Choice though I think there is a better one.");
break;
case 'Corvette':
console.log("It's an awesome looking car!");
break;
case 'Lambo':
console.log("Amazing car to get picked from school in or to drive it. Best choice out of all of them.");
break;
case 'Venom GT':
console.log("It's the fastest car in the world!");
break;
default:
console.log("Wow really?");
};


#2

Remember, it's case sensitive. So if you want to use ".toUpperCase();" you'll need to make your answers like so:

"FERRARI"
"CORVETTE"
"LAMBO"
"VENOM GT"

Otherwise if you get rid of the ".toUpperCase();" then the user may not put in the letters exactly as they should be and it will just go to the default case


#3

Thanks so much it worked