variable = prompt ("mensaje", "valor por defecto");if(variable=="valor") { } else {}
variable = prompt ("mensaje", "valor por defecto");switch(variable) { case "valor":break;case "valor2":break;default:break;}