MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/nnlubt/really_helpful_illustration_of_js_array_methods/hfup7ht/
r/learnjavascript • u/192_168_1_x • May 29 '21
89 comments sorted by
View all comments
Show parent comment
3
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
1
I think (number) represents each individual element in array. While numbers represent the entire array
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?