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

<script>
//BadAdd
//Demonstrates a potential pitfall
//David Fang, 09/07
var meal;
var tip= meal * .15;
var total= meal + tip;
//get the cost of the meal from the user
var tip= meal * .15;
var total= meal + tip;
alert("the meal is $15000" + meal);
alert("the tip is $100" + tip);
alert("Total bill: $1000000" + total);
</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