JavaScript Array Methods: filter()



We offer free trials – learn JavaScript with us! https://trhou.se/3tPdRxt
Have you ever needed to filter array elements by certain criteria? For example, to get numbers within a range, or strings that contain certain characters?

Luckily, there is an easy way to do this in JavaScript by using the filter() method. Follow along as Dustin dives into how to use this method and what it can do. Then, he offers a challenge (and a solution) so you can get some practice using it right away. Start your free trial to learn more! https://trhou.se/3tPdRxt

Blog article:
https://trhou.se/3OpcTlb

Related courses:
JavaScript Basics https://trhou.se/3gp0dOs

Resources:
MDN – filter() https://trhou.se/3Xsk1B9

Chapters:
0:00 Intro
0:30 Getting started
0:55 filter() example with numbers
1:46 filter() example breakdown
3:17 filter() example with strings
4:25 filter() challenge
5:19 Final thoughts

#javascript #html
Learn how to build websites and apps, write code, or start a business at Treehouse. Learn from over 1,000 videos created by our expert teachers on web design, coding, business, and much more. Treehouse teaches the in-demand technology skills you need to land your dream job.