This is my javascript code which is supposed to show: Okay! Great choice We are working hard for your cake
if I enter cak
e or Cake
(notice c with capital) but working nice with cake
but not with Cake
and same goes with pancake
and capital p Pancake
:
var make=prompt("Hey! What you are up to cake or pancake?");
switch(make){
case ("cake" || "Cake"):
console.log("Okay! Great choice We are working hard for your cake");
break;
case ("pancake" || "Pancake"):
console.log("Okay! Great choice We are working hard for your pancake");
break;
default:
console.log("Sorry we Only have cake or pancake to choose from.");
}