this.forEach((element, index, originalArr) =>
newArray.push(callback(element, index, originalArr))
);
so I can put any word in place of element, index and originalArr?
like a, b and c?
does the order of element, index and originalArr matter more???
is that the lesson? element, index and originalArr?
You cannot change the order that arguments are passed by the callers no. But you can name your parameters whatever you want. A, b, c or cat, dog, horse ect.
1 Like
Thank You , Jeremy!
I think I have it dialed in
I’m also reviewing my forEach( ) lessons and seeing Item , index and Arr …
ha to go back to go forward
this is really where the rubber meets the road isn’t it…
system
Closed
January 5, 2024, 7:52am
24
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.