πŸ“Š JavaScript
Q. What does the filter() method do?
  • (A) Returns a new array with elements that pass a test
  • (B) Sorts the array
  • (C) Reverses the array
  • (D) Converts array to string
πŸ’¬ Discuss
βœ… Correct Answer: (A) Returns a new array with elements that pass a test

Explanation: filter() applies a test to each element and returns matching elements.

Explanation by: Mr. Dubey
filter() applies a test to each element and returns matching elements.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
54
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
95%
Success Rate