Doing Math in Multiple Javascript Functions
<p>I'm new to the Javascript world and trying to figure out this assignment my teacher assigned. Here is his description of what is expected:</p>

<ol>
<li><p>Build a function that will start the program. Please call it start()</p></li>
<li><p>From the start() function, call a function called getValue()</p></li>
<li><p>The getValue() function will get a number from the user that will be squared.</p></li>
<li><p>Also from the start function, call a function called makeSquare()</p></li>
<li><p>The makeSquare() function will square the number that was received by the user in the getValue() function.</p></li>
<li><p>Make sure that you display the results of squaring the number inside of the makeSquare() function.</p></li>
</ol>

<p>Here is what I have so far:</p>

<pre><code>function start() {

    getValue();
    getSquare();
}

function getValue() {

    var a = prompt("Number please")
}

function getSquare() {

    var b = Math.pow(a)
    document.write(b)
}

start()
</code></pre>

<p>This assignment doesn't have to be working with any HTML tags. I've only got the prompt box to work, nothing else does though. Am I using variables in a way that can't be used?</p>
