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 Programming AJAX Processing JSON Data

What does the code 'var statusHTML = '<ul class="bulleted">' works here? and the <li>tags. I can't find the info on HTML

I still don't quite understand what does JSON works for ><

1 Answer

Hi Hanwen!

Happy Easter (if that something you celebrate)!!! (I spent today visiting my mom!?!)

In this case, JSON.parse() will return an array of employee objects.

Then, your objective is to convert that array into HTML that can be displayed on the page.

var statusHTML = '<ul class="bulleted">' starts building an HTML string. which will later be imbedded in the webpage.

And, also, in this case, you are constructing an unordered list.

More info:

https://www.w3schools.com/html/html_lists_unordered.asp

I'm hoping that's enough info to move you forward.

If not, let me know and I will show you more.

I hope that helps.

Stay safe and happy coding!

Hi Peter!

Happy Easter! Wish you had a good time with your mom. I don't celebrate Easter but definitely like the decorations!

Thank you for your explanation, it makes the content so much easy to understand!!!