Good day, fellow reader. Two weeks ago I was talking to a colleague, who has plenty of years of PHP expertise, and he was amazed by his personal discovery of the "for each" loop. I couldn't hide my surprise at how could that knowledge be elusive to ...

Markdown supported · ⌘↵ to post
I usually avoid forEach in JavaScript because it at times behaves weirdly.
I prefer map, filter and reduce methods, or the plain classic or the while sometimes. 😅
Diego Baratta
Boca Juniors, Videogames and other nerdy stuff...
Hahaha I'm flattered to be such inspiration to you with this article. It's dumb of me to program all this years without even knowing the foreach's existance... But now with this I know a little more. Txs and keep the good teaching ^^