“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 JavaScript Ulam Spiral

Prime numbers (those that are divisible by only themselves and one) are mathematically wild. Unlike, say, the even numbers, the primes famously elude the capture and discipline of a neat mathematical formula. Compare: For any given even number, we have a ... (more…)

Read more »