var comics = prompt("hey do you like comic books? y or n").toUpperCase();
switch(comics){
case "do you like comics":
if(comics === "y" || comics === "yes" || comics === "Yes") {
prompt("Sweet!");
}else{
console.log("ummmm wrong answer");
break;
}
var comics = prompt("so do you like batman or superman??").toUpperCase();
case "sylk":
//So You Like Comics
if(answr === "superman" || answr === "Superman" && answr === "batman" || answr === "Batman");
console.log("dude thats awesome me too!!");
break;
default:
window.alert("uh can you re-type that??");
}
プロンプトからデフォルトにまっすぐ進みますbreak;
。