Example 1 — Example
Typical call.
JavaScript
function a(){ b(); }
function b(){ console.trace("here"); }
a();How It Works
- Run the snippet.
- Read the printed output.
console.trace() prints a stack trace from the call site.
function a(){ b(); }
function b(){ console.trace("here"); }
a();Typical call.
function a(){ b(); }
function b(){ console.trace("here"); }
a();CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
6 people found this page helpful