Dont know what the problem is!


#1

var user=prompt("Name?").toLowerCase();
switch(user){
case 'rishab':
if(rishab&&Rishab){
console.log("same thing");
} else{
console.log("chilllll");
}
break;
case 'anjal':
console.log("YESSSS");
break;
case 'ritviz':
console.log("hello!!!");
break;
default:
console.log("other ppl");
}


#2

i think that you are making a wrong check up in if(rishab&&Rishab)

what do you want to compare? names?

right now it seems like you are checking rishab=true && Rishab = true