basic-javascript-appendix-2-ch02-q2.htm / htm
<HTML> <BODY> <SCRIPT LANGUAGE=JavaScript> var firstNumber = parseFloat(prompt("Enter the first number","")); var secondNumber = parseFloat(prompt("Enter the second number","")); var theTotal = firstNumber + secondNumber; document.write(firstNumber + " added to " + secondNumber + " equals " + theTotal) </SCRIPT> </BODY> </HTML>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.