adding incorrectly displaying
<p>Fixed my code up. However, now the alert pops up saying your value is NaN. However, it is a number. The parseInt, helped a little bit. I am most likely missing something. Right now my code looks like this:</p>

<pre><code>    &lt;input id="a" type="text"&gt;


    &lt;script&gt;
        function myFunction()
            {
                x=document.getElementById("a").value;
                if(x==""||isNaN(x))
                    {
                        alert("Your First Number is Not Numeric");
                    }
                a=document.getElementById("a").value;   
            }
    &lt;/script&gt;   

    &lt;button type="button" onclick="myFunction()"&gt;Submit Number&lt;/button&gt;
    &lt;br /&gt;
    &lt;p&gt;Second Number&lt;/p&gt;
    &lt;br /&gt;
    &lt;input id="b" type="text"&gt;
    &lt;script&gt;
        function myFunction1()
            {
                x=document.getElementById("b").value;
                if(x==""||isNaN(x))
                    {
                        alert("Your Second Number is Not Numeric");
                    }
                b=document.getElementById("b").value;
            }
    &lt;/script&gt;

    &lt;button type="button" onclick="myFunction1()"&gt;Submit Number&lt;/button&gt;
    &lt;br /&gt;
    &lt;script&gt;
        function add()
            {
                d=parseInt(a);
                e=parseInt("b");
                c=d+e;
                alert("The number is " + c);
            }
    &lt;/script&gt;
    &lt;button type="button" onclick="add()"&gt;Add numbers&lt;/button&gt;
</code></pre>
