There's been some confusion around the new fetch API recently. Let's clear things up. The first thing you'll notice about fetch is it's a massive improvement on XMLHttpRequest in terms of API design. Here's how to get some JSON using XHR: var xhr = new XMLHttpRequest(); xhr.open('GET', url); xhr.responseType = 'json'; xhr.onload = function () { console.log(xhr.response); }; xhr.onerror = function
![That's so fetch!](https://cdn-ak-scissors.b.st-hatena.com/image/square/275edb50d473e8e4acd3a8035eef743809f96ee2/height=288;version=1;width=512/https%3A%2F%2Fjakearchibald.com%2Fc%2Ficon-d166b7f8.png)