topical media & game development

talk show tell print

basic-javascript-appendix-2-ch02-q2.htm / htm

  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)

(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.