// 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));
}
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.