Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Yeah, but the author should clarify this in the prompt..
I agree in that async/await is cleaner (IMO) than chaining Promises.
As an aside for the curious, one can await Promise.all for parallel execution and use destructuring to pull return values, assuming you're OK with the inherent fail-fast behavior.
e.g.
const [resOne, resTwo] = await Promise.all([ asyncOne(), asyncTwo(), ]);
This comment is hidden because it contains spoiler information about the solution
The other great thing about looking at other solutions is seeing cool logic like this when you used parseInt :-)
This comment is hidden because it contains spoiler information about the solution
Likewise with Python. This wasn't at all an 8 kyu kata. Yes, it's mostly algorithms and critical thinking, but I feel like this level of critical thinking is developed as one becomes more adept at coding (thus, should be a higher difficulty).
I gotcha; thanks. I didn't realize we could use different versions on here (do we import them or something)? I'm not sure how all that works - I'm still in the initial learning phases, so please excuse the ignorance!
This comment is hidden because it contains spoiler information about the solution