While using this way also works, we should not un-necessarily return a function from another function as the inner function will remain in the memory occupying space even after the outer function has finished executing.
Log in to continue
We're a place where coders share, stay up-to-date and grow their careers.
Comment from a deleted article or podcast
While using this way also works, we should not un-necessarily return a function from another function as the inner function will remain in the memory occupying space even after the outer function has finished executing.