Scope confusion

Made a really stupid error so I deleted that part :x but I still have this question

I’m coming from another language so I’m a bit unclear on passing functions. Are they passed by value or by reference?

functions are passed by reference

See: JavaScript: Passing by Value or by Reference

Thanks. That’s almost more than I wanted to know, but at least I’ll know where to go when a function pass doesn’t work the way I thought it would :wink:

Jim