DEV Community

Discussion on: Stop Writing JavaScript Like This

Collapse
 
antonmelnyk profile image
Anton Melnyk

You should not use "this" in modern JavaScript in the first place.

Collapse
 
mellen profile image
Matt Ellen-Tsivintzeli

Because?

Thread Thread
 
ifarmgolems profile image
Patrik Jajcay

Because it doesn't promote arguably better immutable state.

But hey, it's a bold statement and I wouldn't say it always applies.