DEV Community

loading...

Discussion on: 25+ JavaScript tips that can help you understand this programming language better

Collapse
hseritt profile image
Harlin Seritt • Edited

Code readability is at the top of priorities when you're doing this for a living. Recursive functions in general can be difficult to read. Stick to for loops for what loops are intended for and use recursive functions when it makes sense to use them. I would advise heavily against substituting out for loops for recursive functions in general. Those who have to work on your code when you've moved on to that rock-star job in the concrete jungle will thank you :-) Otherwise, this is a nice article. Thanks for sharing :-)