
005 JSJ Javascript Objects
JavaScript Jabber
00:00
Javascrip - Is There a Shared Memory Problem?
Javascrip doesn't have threads, but it does have callbacks. And so you run into the same shared memory problems, more or less, that you would withshet with threads. Any callback that gets called can modify any state that's upstream of it. If you've got a function that's reusable, don't put it down in a nested scope where it seven functions in because you will have that probe much more often. Always put your functions in the highest scope possible.
Play episode from 35:21
Transcript


