1 tip for writing more understandable code in JavaScript


I find JavaScript code more understandable if it’s using functions heavily because when written properly ((They are small and do one thing only.)), they typically convey what they do. That does not mean you should start practicing functional programming at once. You can just start by using utility libraries like lodash or underscore more when manipulating data. Even if native implementations exist for certain methods, like filter, map, reduce. That’s because reading first method name and then its arguments make you quicker to understand what’s going on with code at hand.