Posts by Otavio Bonassi • 101 points
1 post
-
10
votes2
answers85
viewsQ: "this" within object properties
In the code below, the first console.log(this) returns the object example (so far so good). The second console.log(this) returns the object window. Why does this happen? Why, even inside an object,…