what i am trying to do is to assign operations function to prompt command so i can type in two numbers a type of operation and get the result in html this is my code so far
function add(a, b) {
return a + b;
};
function substract(a, b) {
return a - b;
};
function multiply(a, b) {
return a * b;
};
function divide(a, b) {
return a / b;
};
function operations(a, b, typoOfOp) {
Prom = typeOfOp(a,b)
document.write(elProm)
return Prom
}
operations = prompt("Write two numbers and a type of operation")