DEV Community

loading...

Discussion on: Can You Solve this Javascript Question

Collapse
iksploetzwich profile image
Robin Plötzwich • Edited

I tried my best solving this one.
Normally I use TypeScript and Angular, so this was a bit new for me.
I'm pretty sure this is neither the best nor the cleanest solution, but at least it works :P.
EDIT: Code formatting, added comments, implemented codepen.