DEV Community

Discussion on: A JavaScript interview question asked at Facebook

richardeschloss profile image
Richard Schloss • Edited on

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 cheating, I guess. No need to re-invent the wheel...

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.