πŸ“Š JavaScript
Q. Which array method returns a new array with only truthy values?
  • (A) filter()
  • (B) map()
  • (C) reduce()
  • (D) forEach()
πŸ’¬ Discuss
βœ… Correct Answer: (A) filter()

Explanation: filter() creates a new array with elements that pass a test.

Explanation by: Chandani
filter() creates a new array with elements that pass a test.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
65
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Chandani
Publisher
πŸ“ˆ
81%
Success Rate