“What’s the typeof null?”, and other confusing JavaScript Types

The typeof operator in JavaScript evaluates and returns a string with the data type of an operand. For example, to find the type of 123, we would write – typeof 123 This will return a string with the type of 123, which, in this case, will be “number”. I… Read more

Similar

Building a Maybe in JavaScript

Cannot read property "x" of undefined. I'm guessing if you're reading this you've seen that message before, and probably at some point wanted to throw something through your monitor. We have the venerable Sir Tony Hoare to thank for th... (more…)

Read more »