How to wait for function call in Javascript without calling it directly
I have several functions that call each other asyncronously, and I need to catch a situation when last functionis called. await statement supposes to call a function I should wait, but it is not to be called directly function First(){…