Javascript Stack Trace
If you’re writing javascript and making a package, designing an API, or working with other developers, you should output helpful error messages if something unexpected happens. Printing the stack trace is a good way for the web developer (or just you 😆) to debug and figure out what went wrong where.
Read more about it here