Show HN: A Repo of JavaScript Coding Challenges
github.com
github.com
Someone should make a repo for testing designer skills as well. Thanks for sharing! This is really well done.
I've found that JS hiring in particular is very tricky because every frontend dev that has used a little jquery suddenly thinks they can create a server, which is completely inaccurate.
Interview questions like this can help you trim it down to the .5% who are actually capable Node.js devs.
There's also a competitive aspect to it if you're into that kind of thing, but I personally just use it as a casual learning/interview prep tool.
Their functional programming collection has been especially invaluable for me for getting used to solving problems in a functional mindset.
Edit: Glad to see an implementation of async.js in there as well; I feel like writing your own version is practically a rite of passage in JavaScript.
var objCopy = JSON.parse(JSON.stringify(obj));
But that 1) is a rather disgusting hack and 2) can potentially break on certain native JS Objects (like Date, for example). The most straightforward way would be to use a for-in loop with a guard for Object.hasOwnProperty(), but in practice, that's very slow by comparison.For tests 3 and 4, you expect the context and args to be determined by the last callback. But according to the first 2 tests, the last callbacks should never be invoked.
Looks like someone already raised an issue: https://github.com/kolodny/exercises/issues/3
Or to make a histogram of the letters that occur in some file.