Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
When people come to JavaScript from other languages, they expect this to work like it does in other languages, but it doesn't.
In fact, this can be very tricky. And it can change on you when you do not expect it.
this gets us all. I do not know a single JavaScript developer that hasn't written console.log(this) to try and figure out WTF this is at the current moment.
nothis will get rid of that problem.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
When people come to JavaScript from other languages, they expect
thisto work like it does in other languages, but it doesn't.In fact,
thiscan be very tricky. And it can change on you when you do not expect it.thisgets us all. I do not know a single JavaScript developer that hasn't writtenconsole.log(this)to try and figure out WTFthisis at the current moment.nothiswill get rid of that problem.