How the V8 engine works
How the V8 engine works
When an error is thrown, a stack trace is reported in the console. It is the state of the Call Stack when the exception is throw.
function func3() {
throw new Error("myErrMsg")
}
function func2() {
func3()
}
function func1() {
func2()
}
func1()
main()
func1()
func2()
func3()