In your initial code examples for forEach, shouldn’t it be this.length instead of arr.length?
Nathaniel D Alcedo Jr
21

yes, thanks. I fixed it.