Can someone tell me what wrong with this code please?


#1

var user = prompt("How smart are you with JS?").toUpperCase();

switch(user) {
case 'JS angular':
if (JS angular === 'YES' && JS === 'YES') {
console.log("JS angular is an important part of JS");
} else {
console.log("Learn one of them");
}
break;
case 'JS Node':
if (JS Node === 'YES' || JS === 'YES') {
console.log("A very interesting area of study in programming");
} else {
console.log("You are missing");
}
break;
case 'JS Introduction':
if (JS === 'YES' && JS Introduction === 'YES') {
console.log("The simplest among all");
} else {
console.log("Too bad");
}
break;
default:
console.log("Is that part of JS? i do not understand that, type something else please");
}


#2

You cannot use

in your condition.....