logo
Ryan's Webpage
 

lowTemp

lowTemp


Hit Reload to see another temperature

<html>
<head>
<title>lowTemp</title>
<script>
// lowTemp
// by Ryan Te
// 10/1/07
// Demonstrates the basic if statement

var temp = 0;
var perfectTemp = 65;

temp = Math.floor(Math.random() * 100) + 1;
alert ("It's " + temp + " degrees outside. ");

if (temp < perfectTemp){
alert ("Wear a sweater!!");

} // end if

</script>
</head>

<body>
<center><center>
<h1>lowTemp<br></h1>
</center>
<hr>
<h3>Hit Reload to see another temperature</h3>
</body>
</html>

 

 

Contact Me

 

Mr. Styner's Webpage

 

Peter

Julie

Nick

Tiddus

Norman