re: How do I use .forEach on DOM Elements? VIEW POST


Although it's a very good point that you can use a for-loop in this case, your own solution can be simplified to [], which would also work in case you'd need other array operations such as map, filter or reduce.

code of conduct - report abuse