Do you promise to use asynchronous Javascript?

courtesy of The Event Loop and Call Stack in Javascript by Laura Nickerson
fetch('http://example.com/movies.json')
.then(response => response.json())
.then(data => console.log(data));

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
syd

syd

software engineer. red wine addict. obsessed with vintage cars and jewelry.