Can someone explain to me how I can access my second array?
I completed the algo successfully, but I'm not quite sure how it all works lol
Primarily, I'm confused as to why my filter method has access to array2.. Because I'm calling the filter method on array1 so obviously the values and indices should be available for array1, but why can I access array2?? Is this some type of implied access? Like I understand, since array2 exists, and it has data from the argument, that I'll have some access to array2 within the functional or block scope, but I thought I wouldn't have scope to access array2 within the filter method.. What am I missing?
Thanks in advance smart people 😄
3
4 comments
Trey Delcamp
6
Can someone explain to me how I can access my second array?
Developer Pro
skool.com/developerpro
Learn how to code. Make money. Have fun. Enjoy life.
Leaderboard (30-day)
powered by