Question · JavaScript and TypeScript course · Module 12: Functional Programming

The Array.filter() Method

What will [1,2,3,4,5].filter(x => x > 3) return?

Answer options

  • [1, 2, 3]
  • [4, 5]
  • [3, 4, 5]
  • true

You can check the correct answer by solving this task in the CodeWorlds game.