3 ms·
Yes, I'd believe it. At a previous employer, our phone screen was "implement min()" for a long time, and it weeded out way too many candidates. (My questions h
by deathanatos 7y ago
Yes, I'd believe it. At a previous employer, our phone screen was "implement min()" for a long time, and it weeded out way too many candidates.
(My questions have often been tailored around "get the candidate to implement something that would require a for loop" and that is typically enough to start weeding people out, particularly at the phone screen.)
- tracker1 7y agoI usually start with, "In JavaScript what 6 values evaluate to false?" ... almost nobody gets it, but it's usually an excellent barometer for how well they know JS as a language and guides the rest of the questions. Aside: I tend to prefer people who have worked with multiple languages that are different from each other, regardless of language. Also, way too many people look down on JS without actually knowing JS.
- kthejoker2 7y ago... well now I feel dumb, I guessed 5 ... except for false itself!
- tracker1 7y agofalse, 0, null, undefined, "", NaN Everything else is truthy. If you think about the original use of JS as mostly input validation, the values above make total sense.