I have the following functions:
function f (x : number): number {
return 1/x
}
function g (x : number): number {
return x*x
}
function h (x : number): number {
return f(g(x))
}
I am trying to convert h (g and f too if needed) to an asynchronous function just with callbacks and not with promises but I am stuck with that.
I know that each function should have a function callback as a parameter but I am not sure how to do that.