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

Online Javascript Editor

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>

   
 
   //var urweather = "Sunny";
   var urweather = prompt("What is the weather like today?");
   if(urweather == "Sunny"){
       document.write("Head out and enjoy under the sun!");
   }   
   else{
       document.write("Stay Indoors!");
   }
   document.write("<br><br>");
   
   
   
sayHello();
</script>
</head>
<body>
</body>
</html>

2O 31 Millicent Tan- Weather Program

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>
var weather= prompt("Hello!Is the weather cloudy?");

if(weather=="yes"){
  document.write("Remember to bring an umbrella.");
}

else{
  document.write("Have a great day under the sun!");
  
}
sayHello();
</script>
</head>
<body>
</body>
</html>

Kristen Chua (6) 2O Weather Task

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>

document.write("Check weather today: <br>");
var theweather = prompt("Is it cloudy outside?:");
if(theweather=="Yes") {
    document.write("Bring an umbrella!");
}
else{
    document.write("Go out and play!");
}
document.write("<br><br>");


</script>
</head>
<body>
</body>
</html>

2O20 Ma Shiqi Weather Program

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>

var weather1 = prompt("Is it cloudy today? (Please type 'Yes' or 'No')");
if(weather1 == "Yes") {
    document.write("Please remember to bring an umbrella around with you today!");
}
else {
    document.write("Yay! You can go out to play!");
}

</script>
</head>
<body>
</body>
</html>

2O 17 Leanne Suen - Weather Program

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>

var weather = prompt ("Is the weather snowy? (Yes/No)");
if(weather == "Yes") {
    document.write("Bring a jacket with you.");
}
else{
    document.write("Go to the playground and play!");
}




</script>
</head>
<body>
</body>
</html>

2O20 Ma Shiqi Weather Program

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>

var weather1 = prompt("Is it cloudy today? (Please type 'Yes' or 'No')");
if(weather1 == "Yes") {
    document.write("Please do remember to bring an umbrella around with you today!");
}
else {
    document.write("Yay! You can go out to play!");
}

</script>
</head>
<body>
</body>
</html>

2o 1 alyssa tan--weather program

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>

</script>
</head>
<body>
</body>
</html>

2O 12 Hu tingXuan,Reanne weather programme

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>
var urname=prompt("What is the weather sis? cloudy or sunny?");
if(urname =="cloudy"){
    document.write("bring an umbrella!")
}
else{
    document.write("RELAX!GO OUT AND PLAY")
}
document.write("<br><br>")


</script>
</head>
<body>
</body>
</html>

2O 22 Neo Jia Wen Task 4A graded assignment

<!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>

Lesson 3B

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>
//Demo 4
var urname = prompt("What is your name?");
if(urname == "Min Xuan"){document.write("Hello Min Xuan!");}
else{document.write("Hello Stranger!");}
document.write("<br><br>");

</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.