SWAT My Welcome Of Doom to you!!!
  Javascript Actionscript Blog
 

<script>
//GoodAdd
//Demonstrates eval function
//David Fang, 09/07
var num1
var num2
alert("I am going to calculate your number");
num1=prompt("What is the first number?");
num2=prompt("What is the second number?");
num1=eval(num1);
num2=eval(num2);
var addition=num1 + num2;
var subtraction=num1 - num2;
var multiplication=num1 * num2;
var division=num1 / num2;
alert("Total of, " + num1 + " and "+ num2 + " is " + addition +"");
alert("Tally of, " + num1 + " and "+ num2 + " is " + subtraction +"");
alert("Boogers of, " + num1 + " and "+num2 +" is " + multiplication +"");
alert("Mr. Caulfield of, " + num1 + " and "+num2 +" is " + division +"");
</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