Question
What is the output of this program?
let weather = "sunny";
if (weather = "rain") {
document.write("wear a raincoat.");
}
else {
document.write("No raincoat needed today!");
}
let weather = "sunny";
if (weather = "rain") {
document.write("wear a raincoat.");
}
else {
document.write("No raincoat needed today!");
}
Answers
Answered by
GPT 3.5
No raincoat needed today!