Read this JavaScript tutorial and learn the accepted method of finding out the call stack. Get information about the obsolete method of getting the call.
The tutorial provides information about JavaScript version of the sleep() which makes the function pause execution for specified seconds of milliseconds.