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 trialClifford Gagliardo
Courses Plus Student 15,069 Pointsdata.items
I don't understand what data.items is. Could someone explain it to me?
1 Answer
Joe Dodd
Front End Web Development Techdegree Graduate 15,203 PointsListen 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?
Clifford Gagliardo
Courses Plus Student 15,069 PointsClifford Gagliardo
Courses Plus Student 15,069 PointsI get it now. I thought at first it was a variable that I didn't see get defined elsewhere.