Understanding the idea of a shared or non-shared execution context can help avoid errors such as: var myFunction = function () { this.f = new Array(5); for (var i = 0; i < 5; i++) { this.f[i] = ...