This repo contains a simple little quiz/test to challenge you're ability to work with Promises.
It was prompted by the following tweet:
git clone https://github.com/staxmanade/javascript-promise-test.git
npm install
- Open the test.js file
- Read the test code (all of it)
- For each
expect(result).to.equal("???");
replace"???"
with what you "think" theresult
will be. - Once you've filled in an answer for each of the tests/questions run
npm test
at the command prompt and see how you did.
P.S. I like to think I'm pretty good with promises, but I got question #3 wrong the first time I tried it 😢.
P.P.S. Read the following post to get some background on the original tweet above (and the answers)