Course overviewMERN STACK / JAVASCRIPT FOUNDATIONS
10 minBeginner
LESSON 30 OF 109
The ERNEST Learning Loop
Select data with filter()
Use filter() to keep only the items that pass a condition.
Your learning journey
0 of 6 stages completed
Currently learning · ExploreMove at your own pace
Explore · real-world problem
Before we learn the syntax, let's meet the problem.
A course dashboard has marks for every learner, but you want to display only learners who passed. You do not want to change their marks; you want a smaller list containing only matching records.
What would you try first to solve this problem?
Explore · 1/6