Q. Which JavaScript method is used to create a new array with array elements that passes a test?

  • (A) forEach()
  • (B) map()
  • (C) forMap()
  • (D) filter()
πŸ’¬ Discuss
βœ… Correct Answer: (D) filter()

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
242
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
86%
Success Rate