The Promise of a Burger Party

Avatar of Chris Coyier
Chris Coyier on

Mariko Kosaka with an elaborate and wonderful metaphor.

What is a Promise in JavaScript? It’s like if you go to a restaurant and order a burger and a shake. The restaurant needs to prepare your food, so after you pay, you get a tray with a buzzer on it. The tray is the Promise.

Direct Link →