DEV Community

Discussion on: Rethinking JavaScript: The complete elimination and eradication of JavaScript's this.

Collapse
 
joelnet profile image
JavaScript Joel

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.