YouTube

Got a YouTube account?

New: enable viewer-created translations and captions on your YouTube channel!

English subtitles

← append()ing Arrays Solution - JavaScript Basics

Get Embed Code
5 Languages

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

  1. To find this out,

  2. we'll take a look at a appending skills.length to the main div on the page.
  3. Looking at the array, we have index zero, index one, index two, and index three.
  4. So, let's go ahead and save this.
  5. Come over to the browser and hit refresh.
  6. And we can see that the skills length is four,
  7. despite the fact that the last item in the array has an index of three.
  8. So, looking at the question, is the length of an array equal to the last index?
  9. The correct answer is no.