In nodejs, functions are read and cached at the beginning of execution, so it doesn’t really matter where functions are written in a program. Is it correct that functions inside functions are also cached at this time, eg callbacks?
If so does it follow, that callbacks can also be written anywhere inside the parent function, top or bottom?
Is there a code preference that the JavaScript community takes regarding where functions in general are written and more specifically, where callback functions are written inside its parent function, eg up top or down the bottom etc.