4 ms·
You could derive a decent interview question out of that. Not the specific output of the bad call to parseInt, but simply "What arguments can you pass into pars
by brailsafe 6y ago
You could derive a decent interview question out of that. Not the specific output of the bad call to parseInt, but simply "What arguments can you pass into parseInt?", and then simply ask about why it would be bad to pass as a callback to map. I'd probably have tripped up on the latter having not read this post, because I'd have never thought to not explicitly pass the radix to parseInt and rarely use anything but anonymous functions in a map call.
Though on second thought, maybe not a great question, hard to say. I know I've tripped up on the std sort function having not had used it in a while.