javascriptvisualizer icon indicating copy to clipboard operation
javascriptvisualizer copied to clipboard

nesting closures on repeated function calls.

Open hiddenkrypt opened this issue 7 years ago • 1 comments

function foo(){
  function bar(){
    return true;
  }
  return bar();
}
foo();
foo();
foo();

When the above is run, each new invocation of foo is displayed as existing within the closure formed by the previous invocation. image

hiddenkrypt avatar Oct 11 '18 05:10 hiddenkrypt

Thanks!

tylermcginnis avatar Oct 11 '18 15:10 tylermcginnis