You can go through each element in an object list in one of two ways, using FOR Loops.…In the last movie, I showed you how to use the FOR IN Loop for working with objects.…One problem with the FOR IN statement is that you can't access arrays in a specific order.…If you want to go through elements sequentially, we need a different version of the FOR statement.…Just like with the previous movie, we're going to start with an info variable, but notice…that it's in a slightly different version.…Instead of being just a list of objects, it's an array of objects.…
That's going to be traversed a little bit differently.…We've already placed our h2, which has just the title of links right now, as well as an unordered list.…We'll go ahead and create our variable called output here,…just like we did before, and then we're going to use a FOR statement, but this one is going…to be a little bit different. So FOR statements look like this.…This one goes from a certain variable set to 0 and then to another variable that is set to a count.…
- What is JSON?
- Creating simple data
- Communicating across sites with JSONP
- Rotating with jQuery Cycle