High Or Low
<script>
// highOrLow
// Catherine Casuat 10/2/07
// Demonstrates the if-/-else structure
var temp = 0;
var perfectTemp = ??;
temp = Math.floor(Math.random() * 100) + 1;
alert ("It's " + temp + " degrees outside.");
if (temp < perfectTem){
alert("It's cold!!");
} else {
alert("It's hot!!");
} // end if
</script>