Gathering the numbers and math
<p>So I'm creating a page that asks the user for two numbers and sends them as arguments to four arithmetic functions, addition, multiplication, division, and modulus, and I want the functions to return the values to the calling module. </p>

<p>I'm confused on how I would go about the function, here is what I have so far.</p>

<p>I have addition, but I'm confused as to how I would do this for multiplication, division, and modulus. Basically it gathers the numbers and displays them added, multiplied, divide, and modulus. Here is my code...</p>

<pre class="lang-html prettyprint-override"><code>&lt;html&gt;
&lt;head&gt;
&lt;script type="text/javascript"&gt;
function add(number1, number2)
{
return number1 + number2;
}

var theFirstNumber = prompt("What is the first number?");
var theSecondNumber = prompt("What is the second number?");

var additionResult = add(theFirstNumber, theSecondNumber);

document.write(additionResult);
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
