type detection

Matthias Reuter's picture

All about types in Javascript - Type detection

This is the fourth (and last) part of a series "All about types" in Javascript.

  1. The basics - types and general rules of conversion
  2. Automatic type conversion
  3. Explicit type conversion
  4. Type detection

The drawback of having a loosely typed language like Javascript, is that you sometimes have to determine the current type of a variable. This mostly occurs when you create a function that accepts different types of parameters - or is limited to one type.Read more

Syndicate content