Encapsulation in Javascript
This may be basic JavaScript:TGP, but I’m just getting the hang of it. I asked my JS peeps the other day, “If I have two functions and I they each need access to one internal function, how do I encapsulate that?” If I need to define one function that uses a nested function, all is …