HGreat 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 https://web.archive.org/web/20170403221045/https://blogs.oracle.com/greimer/entry/best_way_to_code_aComment·Article·May 7, 2023·7 Optimization Tips Every JavaScript Developer Needs to Know