Earlier quoted context omitted.
> and the Javascript question was to test whether you've ever done anything numerical in JS. It's a lousy test, then. The fact that someone can't tell you the answer to that question, off the top of their head under interview conditions, might mean they are a newbie claiming to know languages they really don't. However, it could also just mean that they have experience with several dynamically typed languages but, si…
> since they would never write something daft like '4'+4 The question is an artificial simplification. They don't care about that literal construct. They care if you know what the + operator does on strings vs. numbers and what the implicit type conversion rules of the language are (and what the resulting 'gotcha' is). No one is worried about you literally writing '4'+4. They are worried about you writing foo + bar a…
In that case, perhaps a better question would determine whether the candidate understood that in a dynamically typed language, variables don't have types, values do...