Skip to content

jsonxr/examples-js-promises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published