Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript A Real World Example

Does 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.

Kevin Gates
Kevin Gates
14,859 Points

I 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.

1 Answer

Not 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.