<!DOCTYPE html> <html> <title>Web Page Design</title> <head> <script> document.write("task 3B: <br>”) var weather1 = prompt("What’s the weather like? Enter (A) for Rainy and (B) for Sunny.”) weather1 = weather1.toUpperCase(); if (weather1 == "A") { document.write("The weather today is rainy. Bring an umbrella.”); } else if(weather1 == "B") { document.write("The weather today is sunny. Bring an umbrella.”); } else {document.write("You have keyed in the wrong input.”) } </script> </head> <body> </body> </html>
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more