Fetch api | SoloLearn: Learn to code for FREE!


Fetch api

Should i focus on fetch api or xml ajax?

4/21/2019 12:47:17 PM


1 Answer

New Answer


The fetch API is the newer version of XmlHttpRequest. In order to understand fetch properly, I'd recommend learning XmlHttpRequest first as it will give you a steady foundation about requests and responses. After that, you'll need to learn promises in order to use fetch. --- When should you use fetch? If you are certain that your site or web application will not be opened in Internet Explorer, then it is safe to use fetch.