Something Like "this"

added by Paul Wheeler
8/13/2014 1:46:37 PM

3 Kicks, 118 Views

Few people learn JavaScript as a first programming language. Typically people will start with an object-oriented language such as C#, Java or C++. It can be something of a surprise then when a programmer moves on to JavaScript and discovers that the value returned by ‘this’ is less predictable than expected.