Multiple ChoiceBeginner 30s
Array filter
Choose the best answer for: filter method
Options
- 1arr.filter(fn) returns only the first element that matches fn
- 2arr.filter(fn) is exactly the same as arr.map(fn) for all inputs
- 3arr.filter(fn) mutates the original array and returns that array
- 4arr.filter(fn) returns new array with elements passing fn test
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.