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.
<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>
//Task 4A graded assignment .o.
var weather = prompt("Is the weather cloudy? Capitalise your answer as Yes/No, AND BE A GOOD USER! :D");
if(weather == "Yes"){
document.write("Bring an umbrella!");
}
else{
document.write("Go out and play!");
}
</script>
</head>
<body>
</body>
</html>
Advertisements
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.
AcceptLearn more