User:Tanner Ghosen/common.js

function Math(x,y,op) {	x = prompt("What's the first number?"); y = prompt("What's the second number?"); op = prompt("What's the function that'll be used to do this equation?"); if (op == "addition") {		alert(x+y); }	else if (op == "subtraction") {		alert(x-y); }	else if (op == "multiplication") {		alert(x*y); }	else if (op == "division") {		alert(x/y); }	else {		alert("ERROR"); } }