let age = prompt('Your age?', 18);
switch (age) {
case 18:
alert("Won't work");
break;
case "18":
alert("This works!");
break;
default:
alert("Any value not equal to one above");
}
点击“确定”按钮,返回结果是什么?
发布于 2021-04-01 09:40:30
【单选题】 A Won't work B This works! C Any value not equal to one above