A few questions on helping you understand async control flow with callbacks and promises. It also uses TDD development!
First, read the slides: https://jonathanong.github.com/async-control-flow/
You need node.js
installed! I recommend you install node v4
or higher!
You need at least node v0.12
for Promise
s.
Clone this repo:
git clone https://github.com/jonathanong/async-control-flow
cd async-control-flow
Install the dependencies:
npm install
You could also install mocha
globally to make typing easier for you.
npm install -g mocha
Go into one of the folders:
README.md
for instructions.index.js
file until the tests pass.test.js
file to understand how the function should work.To run the test from the root folder, type:
./node_modules/.bin/mocha 1-zalgo/test.js
If you have mocha
install globally, just run mocha
on the test file:
mocha 1-zalgo/test.js
If the tests pass, you're good!
If you want to test all the questions at once, just type npm test
!
Let me know if you have any questions!