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));

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

UNDERSTANDING HTTP RESPONSE STATUS CODES

Dark Mode on! Learn to integrate Awareness Kit (Dark Mode) in a Travel Application in React Native

Vim Macros, Create Your Own Automations!

Paging by Scroll — ElasticSearch

Seed MongoDB using external API in Node.js

Why Is React Native Considered Ideal for Hybrid App Development?

Variable Hoisting in Javascript

Can You Refactor JavaScript Safely Without Test Coverage?

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.

More from Medium

The main pitfalls of learning JavaScript

How to get query params from a URL in JavaScript

JavaScript — Using The Spread Operator (…)

JavaScript Class Field Declarations