javascriptvisualizer icon indicating copy to clipboard operation
javascriptvisualizer copied to clipboard

A tool for visualizing Execution Context, Hoisting, Closures, and Scopes in JavaScript.

Results 17 javascriptvisualizer issues
Sort by recently updated
recently updated
newest added
trafficstars

//ofc ik that I can't access the var name is sfn but I wanted to check out the closures and this happened // the init fn creates a closure then...

Throws error when running this code. And screen becomes blank ```Javascript function createAdder(baseNumber) { return function(otherNumber) { if (otherNumber

I tried running code that had setTimeout but the function was never invoked.

It would be nice to be able to step back and forth while experimenting with code in this tool in order to see changes through the different phases. Currently all...

Hi - thanks for making this tool, it's a lot of fun to play around with and I totally understand it's a WIP / side-project. I've tested some code out...

In my example the Function declaration is shown after the variable definition and assignment. ![example](https://user-images.githubusercontent.com/3989365/49147780-45be6f00-f30e-11e8-930b-2c6295af9655.gif)

[Here's a link to an example](https://tylermcginnis.com/javascript-visualizer/?code=var%20count%20%3D%200%3B%0A%0Afunction%20makeAdder%28x%29%20%7B%0A%20%20return%20function%20inner%20%28y%29%20%7B%0A%20%20%20%20return%20x%20%2B%20y%3B%0A%20%20%7D%3B%0A%7D%0A%0Avar%20add5%20%3D%20makeAdder%285%29%3B%0Avar%20add10%20%3D%20makeAdder%2810%29%3B%0Aconsole.log%28count%29%3B%0Acount%20%2B%3D%20add5%282%29%3B%0Aconsole.log%28count%29%3B%0Acount%20%2B%3D%20add10%2810%29%3B%0Aconsole.log%28count%29%3B) The code runs and returns the correct result, but the resulting display for the closure scope seems to be off. Step through and notice...

When I write over 71 lines of code the controller buttons used to run and pause my code disappears. The controller buttons keep getting smaller until they are not clickable....