The letters 'JS' within a square

JavaScript: V8 Engine

How the V8 engine works

The letters 'JS' within a square

JavaScript: V8 Engine

How the V8 engine works

V8 Engine

Source Code

Memory Heap

Call Stack

Console

Console

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.

/index.js

function func3() {
    throw new Error("myErrMsg")
}

function func2() {
    func3()
}

function func1() {
    func2()
}

func1()
                    
An arrow pointing right
2 arrows pointing left & right
main()
func1()
func2()
func3()
> Uncaught Error: myErrMsg     index.js:2
  at func3 (index.js:6:3)
  at func2 (index.js:10:3)
  at func1 (index.js:13:3)
>