working with local scope

by james gotsell

HTML

<script src=" https://getfirebug.com/firebug-lite-debug.js"></script>

JavaScript

// work on this when you get home 
// within the console its somethings coming up undefiend
/// fucking scope 
var input1 = prompt("what is the first number");
var input2 = prompt("what is the second number");
   var num1 = parseInt(input1);
   var num2 = parseInt(input2)
function mathGame(){
	 
    function number(num){
    		//var num = 200; 
        function add(x, y){
           return x + y;
        };
        function multiply(x ,y){
           return x * y
        }
    }
    console.log(add(num1, num2));
    console.log(multiply(num1, num2));
}