© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Manigandan Ravi
Software Developer @ Freshworks
Hey first of all good explanation. But I don't understand why we should not iterate using for or while loops. Why you prefer map, reduce, filter etc,.
Sayuri Kamble
A young aspiring dev, sharing her knowledge and documenting the journey
That's one aspect of Functional Programming. Map, reduce, filter are all functions. Which are short and clean to read.
For / while loops are long and difficult to read and also a bit hectic.
Let me know if you need more clarification !
Got it thanks..!! Sayuri Kamble