I've started using "use strict"
for my scripts recently. One of the behaviors I noticed is that this.[name of variable]
doesn't work for an object. For example:
(function(){
"use strict";
window.person = {}
person.name = {
first: "first name",
last: this.first
}
}());
Seems like that strict js doesn't allow it anymore. Why is this removed? Are there any disadvantages?