You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The task description isn't very clear about how the different counters are supposed to function. From looking at the official solution, I gathered the following:
Each individual promise should increment a counter passed to it each time it is called, and also increment the 'all' function's state counter which tracks how many times an individual promise is resolved.
Once the statewide counter reaches the same number as the number of individual promises, the outermost 'all' promise should resolve (a la 'callback counting' from learnyounode).
The 'all' promise should be returned so that the resulting state can be accessed and controlled externally.
However, the tests don't reinforce this either. Here is a gist that passes despite mostly missing the above three points.
The text was updated successfully, but these errors were encountered:
The task description isn't very clear about how the different counters are supposed to function. From looking at the official solution, I gathered the following:
However, the tests don't reinforce this either. Here is a gist that passes despite mostly missing the above three points.
The text was updated successfully, but these errors were encountered: