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
Linden Schrage
2,667 PointsItem vs NewItem Confusion
Hi all! I'm really confused why we use newItem in some places and item in others. I don't understand the difference between the two. Why do we switch off using one and then the other? Why do we use both in the addToList function?
Any help would be greatly appreciated! Thanks so much!
Benny Ogidan
17,948 PointsBenny Ogidan
17,948 PointsBest to give some context i don't think there are any methods named item or newItem unless the tutor named 2 variables newitem and item is trying to clarify the difference between both variables