In an answer to the question Accessing variables from other functions without using global variables, there's a comment about OOP that says:
That rings true to me from what I've seen some of my old OOP colleague. There are lots of different approaches and different voices leading in different directions. Since I am a front end developer and UI designer, I am a little confused.
- make it a global
- make it an object property, or
- pass it as a parameter when calling B from A.
I've read about namespaces, currying, and other approaches...