logo
Ryan's Webpage
 

HighorLow

HighorLow


Hit Reload to see another temperature

<html>
<head>
<title>HighorLow</title>
<script>
// by Ryan Te
// 10/2/07
// demonstates the if-/- else structure

var temp = 0;
var perfectTemp = 77;

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

if (temp < perfectTemp){

alert("It's cold!!");
} else {
alert("It's hot!!");
} // end if

</script>
</head>
<body>
<center><center>
<h1>HighorLow<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