[Solved] Unable to get output after passing functions in node js program? [closed]


Probably, you meant execute to be like this:

function execute(someFunction, value) {
    someFunction(value);
}

As it is, your code just calls execute recursively, forever. (Well, until the stack overflows.)

word is not reserved.

3

solved Unable to get output after passing functions in node js program? [closed]