English subtitles

← If Statements Solution - JavaScript Basics

Get Embed Code
5 Languages

Showing Revision 3 created 05/24/2016 by Udacity Robot.

  1. So first, we check to see if our list of skills has a length that's greater
  2. than 0.
  3. If it does, we start by appending our HTMLskillsStart.
  4. We can see here that we have a formatted skill,
  5. which is created by taking HTMLskills and calling the .replace method,
  6. and replacing the data place holder with the first in the list of skills.
  7. Lastly, we append that skill to the page.
  8. And for the remaining three items,
  9. we repeat that same code, only changing the index.