DEV Community

loading...

Discussion on: A JavaScript interview question asked at Facebook

Collapse
richardeschloss profile image
Richard Schloss • Edited

For the Facebook question, just "cheat"...just create a wrapper around the built-in JS web-animation API and be done with it in 2 seconds (elm.animate(...)). The built-in isn't third party and technically not breaking directions...so...half cheating, I guess. No need to re-invent the wheel...

Collapse
elisabethgross profile image
elisabethgross Author

Generally speaking, most interview questions are given despite well known methods / libraries being around that have already solved a problem! I have often been asked to implement lodash methods for example, even though in the real world, I'd just use lodash.