Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Exercise: Promises #932

Merged
merged 15 commits into from
Apr 10, 2021
Merged

Conversation

slaymance
Copy link
Contributor

I thought it would be useful to add an exercise which focuses on Promises since they're such a core part of JS development. My idea was to ask learners to implement a function that behaves like NodeJS's util.promisify, as well as the Promise static helper methods in native JS:

  • Promise.all
  • Promise.allSettled
  • Promise.race
  • Promise.any

I've included some tests for each function as a starting point and an example implementation of all the functions. I'd love some feedback and additional contributions. I think this would make a great language-specific exercise!

@SleeplessByte
Copy link
Member

@slaymance before reviewing, can you make the CI's pass?

@SleeplessByte
Copy link
Member

Thanks <3

Base automatically changed from master to main January 28, 2021 19:15
Copy link
Member

@SleeplessByte SleeplessByte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright. This is looking like a great addition to the practice exercises. I have no things you should change. I like it.

In order to merge (sorry!) two more things:

  1. move the promises folder into practice
  2. then rebase (watch out: package.json has a key practice too, now)
  3. run npm i in the root
  4. run ASSIGNMENT=practice/promises npx babel-node scripts/sync in the root

As far as I'm concerned, it's mergable right after.

@SleeplessByte
Copy link
Member

@slaymance I performed the tasks, added introduction, added .meta/config files and added you as the Author.

Thanks for contributing :)

@SleeplessByte SleeplessByte merged commit 1bd15ea into exercism:main Apr 10, 2021
@junedev junedev linked an issue Sep 1, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add new exercise: Promises
3 participants