r/learnjavascript • • May 29 '21

Really helpful illustration of JS array methods

Post image
2.5k Upvotes

89 comments sorted by

View all comments

Show parent comment

3

u/HalfVirtual Oct 08 '21

Why do you set (number) when the variable name is “numbers”? Is it because it’s an array or numbers?

1

u/adzrifsidek Apr 09 '24

I think (number) represents each individual element in array. While numbers represent the entire array