Error Stack Trace

Inspect the stack trace of an error.

Preview

Code

<script>
try{
  throw new Error("Example error");
}catch(e){
  console.log(e.stack);
}
</script>

More JS Errors Examples (7)