Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Practice Filtering Paginated Data!
You have completed Practice Filtering Paginated Data!
Preview
In this video, we’ll show you one possible solution to the challenge.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
you can watch my solution,
then go back and give it another go.
0:00
To start, I added an event listener on our
search input variable which is listening
0:01
for the key up event.
0:05
There are other events that work similarly
that you could have used such as input or
0:07
key down, and that's perfectly fine.
0:12
Check the teachers notes for
a list of keyboard events.
0:14
Then I created a variable,
named it newData, and
0:17
initialized it as an empty array.
0:21
This is what will push our
matched authors into soon, and
0:24
prevents us from altering
the original data.
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up