4 ms·
Isn't this basically atoi? Which has a lot of edge cases.
by jtchang 8y ago
Isn't this basically atoi? Which has a lot of edge cases.
- tracker1 8y agopretty much... the main one I tend to ask is the 6 falsy values, clarified as needed. The responses tend to be a good overall indicator of how well the person knows JS.
- jtchang 8y agoHow does it indicate how well someone knows JS? That's the type of question you can easily Google. Not to mention in general Javascript does some pretty not intuitive things with objects: https://archive.org/details/wat_destroyallsoftware https://archive.org/details/wat_destroyallsoftware
- tracker1 8y agoWell, if someone googles it in a live interview, they're pretty much out. It's not the ONLY question I ask, but will guide where the rest of questions come from. It's (knowledge of falsy values) been a very representative indicator of how well they know the language itself. It's not an indicator of understanding software as a whole, or a given UI framework or library.