Why does my weather bot always suggest an umbrella?
function getAttire(forecast) {
switch (forecast) {
case "rainy":
return "bring umbrella";
case "snowy":
case "hailing":
default:
return "wear coat";
case "sunny":
return "wear sunglasses";
}
}
Reply with what is broken and how you would fix it.