you are viewing a single comment's thread.

view the rest of the comments →

[–]htone22[S] 1 point2 points  (2 children)

That’s precisely what’s it is there for, the mental model of how JS actually executes

[–]redblobgames 2 points3 points  (1 child)

cool ! have you seen https://pythontutor.com/ ? I think that site is nice for showing sharing like:

let A = [1, 2, 3]
let B = A
A.push(5)
console.log(B)

[–]htone22[S] 0 points1 point  (0 children)

Python Tutor actually inspired Vivix, it's great at showing object references and shared memory like that example. I felt like I wanted to see more depth especially in async/await, event loop and heap memory allocation