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 trialA X
12,842 PointsWhy does AJAX use XML?
I just re-watched the intro to AJAX video, and the video mentions that in order to see AJAX on the console you need to enable the ability to see XML HTTP requests. What I'm not understanding is why AJAX is using XML vs. some variant of JS. Isn't AJAX a variant of JavaScript not XML?
1 Answer
Seth Kroger
56,414 PointsFrom MDN: "AJAX stands for Asynchronous JavaScript and XML." XML is just the format of the data being requested/sent. Think of it as a much more generalized version of HTML where you can make up your own tags. Nowadays it's more common to request JSON over XML, but the original name stuck.