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 trialElizabeth Hahn
21,034 PointsDoes your list not render to the page? I found a typo in the generateListItems function....
In Andrew's code, he misspelled generateListItems (left off the e in generate). If you don't copy and past the name of this function, but type it out yourself, when calling it in the last lines of code : getJSON('../data/employees.json').then(generateListItems)...... then your list will never render to the screen. Took me about an hour to figure out why my code didn't work.
1 Answer
Elizabeth Hahn
21,034 PointsNot to argue with you, but you can still see the misspelling in the end of the video, all the way up to the very last second.
I fixed it also and it worked fine, I'm just trying to alert other students that there is a misspelling in the code and if you type the callback function with the correct spelling, but the function that it is referencing is spelling incorrectly, it won't work.
Kevin Gates
15,053 PointsKevin Gates
15,053 PointsI just finished this recently. I don't recall this error. I think he does have the error early on, but he ends up fixing the spelling error. I fixed it immediately and mine worked out fine.