topical media & game development

talk show tell print

basic-javascript-02-ch2-q2.htm / htm

  <script language="JavaScript" type="text/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 " +

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