Skip to main content


 
JavaScript anti-patterns
Let's talk about anti-patterns when writing frontend javascript. I've tried to avoid writing down the stuff that linters can tell you, and instead collect examples from the everyday code. DOM Starting with very basic and classic one. Conditions add unnecessary complexity in this case, use toggle.
bookmarks javascript