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!");

}

(1 point)
Responses

an error message because the closing brace for the if statement is on the same line as the word else

an error message because the closing brace for the if statement is on the same line as the word else

an error message because document.write() instead of console.log() is used

an error message because document.write() instead of console.log() is used

“Wear a raincoat.”

“Wear a raincoat.”

“No raincoat needed today!”

1 answer

“No raincoat needed today!”
Similar Questions
  1. what kind of weather is associated with high humidity and low air pressure?\rain fair weather sunny and cool weather hot and dry
    1. answers icon 2 answers
    1. answers icon 1 answer
  2. Which weather events are likely to happen due to low- pressure system ?dry weather , blizzard , sunny days blizzard , rain ,
    1. answers icon 64 answers
  3. Can someone help me out? Thanks!Question: Which weather events are likely to happen due to a low-pressure system? A. hurricane,
    1. answers icon 8 answers
more similar questions