AI

Filter data with .filter()! It creates a new array with items that match a condition.

Your Task:

  • Create affordableProducts array
  • Keep only products where price is less than maxPrice
TypeScript Solution
Loading...

Submit your code to see test results