Make your own free website on Tripod.com
SWAT My Welcome Of Doom to you!!!
  Javascript Actionscript Blog
 

<script>
//manyTemps
//David Fang
//Demonstrates the if/else structure
var temp = 0;
temp = Math.floor(Math.random() * 300) + 1;
alert("It's " + temp + " degrees outside. ");
if (temp < 150) {
if (temp <20) {
alert("Wear warm, tight clothing!!");
} else {
alert("Wear a sweater!!");
} //end 20 if
} else {
if (temp > 150) {
alert("Wear a bunch of sunscreen!!");
} else {
alert("Wear short clothing!!");
} // end 150 if
} // end 20 if
</script>

 

 

Links

1. SLHS

2. SLHSXC

3. JMMS

Contact me

Class links

Computer Science

Five Classmates

1. Julio Maravilla

2. Norman Duong

3. Huy Vo

4. Titus Green

5. Jack Li

Chapter 1
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Miscellaneous
 
Home Product Contact order