Hello everyone,
This is my first post here, so I'll try & keep it shortπ. I've recently started sharpening my javascript axe on Codewars aft...
For further actions, you may consider blocking this person and/or reporting abuse
Algorithmic is not a trivial skill. You have to understand clearly the problem and be able to reformulate (which you've done well here). Then you need to know the vocabulary that will help you. Codewar is an excellent resource to polish that skill. I liked edabit.com for this also.
The refactored code is actually the solution in codewars! π , I'll check out edabit, thanks!!