Skip to content

Instantly share code, notes, and snippets.

View HartiganHM's full-sized avatar
🐻
Working from cave

Hugh Hartigan HartiganHM

🐻
Working from cave
View GitHub Profile

Writing and Working With Promises

For this assignment, you'll be reintroduced to Promises and then write your own!

Some Background

Asynchronous code is everywhere in JavaScript, and Promises are a tool that enable us to work with asynchronous code in a manageable way. You've probably consumes promises before, most likely when you used the fetch API, but how are they working under the hood. With fetch, you most likely used something like this for a GET request:

fetch('http://www.some-api/users')  
@HartiganHM
HartiganHM / .md
Created January 9, 2018 23:18 — forked from joshuajhun/.md

What's this PR do?

Describe the problem or feature in addition to a link to the issues. Delete any content that doesn't apply.

Pre-Merge TODOs

  • Screenshots Included
    • ANY change to the UI of the app must have screenshots/gifs
    • Hint: recordit is really great for this
  • Tests Added
    • ANY change that can be tested must include testing

Outline Components

Introduction

Background of technology or service