Bummer! You have been redirected as the page you requested could not be found.
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 JavaScript Loops!
You have completed JavaScript Loops!
Preview
In this challenge, you will use a loop to reduce the repetition of code in a program.
Resources
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
In fact, it's common for programmers
to first write a program that works
0:00
perfectly well, but
could be written better.
0:03
Then later spend a little time
rewriting it to be less repetitive,
0:05
more efficient, and maintainable.
0:09
Improving code also might
mean making it run faster,
0:11
making the code easier to read,
or adding comments so
0:14
that other developers can
understand how your program works.
0:17
One of the most common
improvements is to review and
0:21
improve code using the DRY
programming principle.
0:25
[SOUND] DRY is an acronym that stands for
Don't Repeat Yourself.
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