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 fourth 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 each letter in the array
noel except for the L character.
0:00
Let's start with copying and
pasting the code for
0:03
this challenge into Atom in order
to make the code easier to read.
0:06
To solve this challenge, I added the call
to forEach method with anonymous call
0:12
back function using arrow function syntax.
0:17
So alphabet.forEach.
0:20
I used character for
the current value parameter name.
0:23
And I included a set of curly
braces to define a code block.
0:29
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