Discussion on: Making AJAX calls using the Fetch API

darkwiiplayer profile image

Very nice post, but I don't quite understand why you would use $('#result') instead of document.querySelector('#result'); the first is quicker to write, but the latter is easier to understand and doesn't require loading jQuery to work.

same for $.each; it's 2019, we can just write [1, 2, 3, 4].each(console.log), no need for jquery whatsoever <3