Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript AJAX Basics (retiring) AJAX and APIs Displaying the Photos

data.items

I don't understand what data.items is. Could someone explain it to me?

1 Answer

Joe Dodd
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Joe Dodd
Front End Web Development Techdegree Graduate 15,203 Points

Listen to what he says at 3:00, that data is an object. Objects have properties and in this case items is a property on the data object. So, data.items is the items property on the data object being passed into your jQuery .each method callback. Does that help?

I get it now. I thought at first it was a variable that I didn't see get defined elsewhere.