Difference between the forEach loop and the for loop #softwareengineer #programming #coding

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

You can use console.time() to track time and see how many milliseconds it takes.
I personally use both for different approaches thought I'm not a developer professionally.

vinade
Автор

For me the second one is more readable cuz I've been using it in c/c++ for like 7 years

tabletalenovo
Автор

Misleading. You might as well talk about for ... in and for ... of loops

melihcelik