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 forEach in JavaScript!
You have completed Practice forEach in JavaScript!
Preview
Let's walkthrough the solution to the sixth code challenge.
This video doesn't have any notes.
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
store the hex colors that start with
the letter F in the array, filteredColors.
0:00
As we've done with each of the other
challenges I'll start with copying and
0:02
pasting code into Atom in order
to make it easier to read.
0:05
So here's another challenge that requires
us to evaluate each value in order to
0:14
determine if it should be added
to the filteredColors array.
0:18
To start, I stubbed out my solution by
adding a call to the forEach method.
0:23
So colors.forEach.
0:28
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