I have two functions, One function name is funOne. Another function name is funTwo. Now I have done simple addition in funOne function and funTwo function. Now I am trying to pass these funOne and funTwo functions as arguments to another function but output is not coming. Please correct my code to get output.
function fun(funOne, funTwo) {
return (funOne + funTwo)
function funOne(a, b) {
return (a + b)
}
funOne(1, 2)
function funTwo(x, y) {
return (x + y)
}
funTwo(3, 4)
}
console.log(fun)