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 second 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
And store the abbreviations in
the dayAbbreviations array.
0:00
Like I did earlier,
I'm going to copy and paste the code for
0:02
this challenge into the Atom text editor
in order to make the code easier to read.
0:05
So the days array contains seven strings,
one string for each day of the week.
0:13
And what we want to end up with is an
abbreviation for each of those strings or
0:19
each of those days.
0:23
So Su for Sunday.
0:25
Mo for Monday and so on.
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