Skip to content
 
 

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Promises vs Callbacks

npm install

Callbacks

node callbacks.js

This shows an example of chaining calls together using callbacks. This leads to a style called Christmas Tree code because it resembles a christmas tree.

Promises

node promises.js

This shows how to chain calls together using the q library and promises.

About

Example of how to use promises using the q library

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors