Interviewed another candidate today. A colleague used a challenge based on computing square roots. It’s a very simple problem and still gives a quick feel for a candidate’s comfort with JavaScript and solving problems with code.
I’ve added it to the (tiny) suite of interview code challenges. See github.com/ManagerJS paper-code/whole-root. I hope you find this useful conducting interviews and preparing for interviews.
Here’s a copy of the challenge for your convenience: