JavaScript Functions and ‘this’

When using an anonymous function inside a class, the reference to the variable 'this' is reported as undefined. This post shows ways of dealing with that situation.