I get confused on a JavaScript this reference situation.
this
I am working on a code that I declare function inside an object method. (The reason is to tidy
The this, references is not related to scope, it depends on the calling context.
As per the MDN doc,
In general, the object bound to this in the current scope is determined by how the current function was called