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 fifth 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 all of the percentages over
50 percent in the array upperRange.
0:00
Again I'll start with copying and
pasting the code for
0:02
this challenge into atom in
order to make it easier to read.
0:05
The solution to this challenge is
similar to the previous challenge.
0:12
We need to evaluate the current value and
0:15
push that value on to the upperRange array
if it satisfies our evaluation logic.
0:18
To start,
I added the call to the forEach method.
0:23
So percentages.forEach.
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