---
title: "Comment by Heila on \"7 Optimization Tips Every JavaScript Developer Needs to Know\" | Hashnode"
description: "Great Article Tawfik! just would like to comment on point 2, sadly javascript array callback functions like foreach have way less performance than normal loop.."
url: "https://hashnode.com/posts/7-optimization-tips-every-javascript-developer-needs-to-know/6363f52cc823ec5329646d28/comment/64571e6230be1a2397aa593b"
---

[Discussion](https://hashnode.com/posts/7-optimization-tips-every-javascript-developer-needs-to-know/6363f52cc823ec5329646d28)

Comment [7 Optimization Tips Every JavaScript Developer Needs to Know](https://hashnode.com/posts/7-optimization-tips-every-javascript-developer-needs-to-know/6363f52cc823ec5329646d28)

[Heila](https://hashnode.com/@halmgren)

[May 7, 2023](https://hashnode.com/posts/7-optimization-tips-every-javascript-developer-needs-to-know/6363f52cc823ec5329646d28/comment/64571e6230be1a2397aa593b)

Great Article Tawfik! just would like to comment on point 2, sadly javascript array callback functions like foreach have way less performance than normal loop.. check these experiments [web.archive.org/web/20170403221045/https://blogs.…](https://web.archive.org/web/20170403221045/https://blogs.oracle.com/greimer/entry/best_way_to_code_a)
