In the Javascript landscape, things change often.

Atypically, ES6 (EMCA Script 2015) makes large syntactic changes.

One place this can have a major impact is with async tasks. The .then() function is magical, letting you write code that handles async tasks without the effort required in ES5

In this small example, we will be fetching JSON data from the GitHub JSON API.

fetch('') .then(response => return response.json())

This is all that is required to use the fetch API to asynchronously download a json feed from github, and set it up for processing. Compared to other methods that require complex setup, and, in many cases, construction of a downloader, the fetch API combined with .this() in ES6 makes life much more simple.