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 Codewars: https://www.codewars.com/kata/5a3dd29055519e23ec000074/solutions/javascript My Code:https://codepen.io/Ricecakes_95/pen/BaXeeMx?editors=0012 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 😄