<!DOCTYPE html>
<html lang="en-US">
<body>
<p>Open your console (Press F12) and click on the button below to get the trace of execution.</p>
<button onclick="myFunction()">Click me</button>
<script>
function myFunction(){
function outer() {
function inner() {
console.trace();
}
inner();
}
outer();
}
</script> </body>
</html>