Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

weather part 2

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>
// task 4a
var weathertoday = prompt("how is the weather today? only type in 'a' for cloudy or 'b' for sunny")
if(weathertoday == "a") {
    document.write("remember to bring an umbrella!")
}
else if(weathertoday == "a") {
    document.write("go out to play!!")
}

else {
    document.write("please only answer with 'a' or 'b' (case sensitive)")
} 

document.write("<br>")

sayHello();
</script>
</head>
<body>
</body>
</html>

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.