This is the fourth (and last) part of a series "All about types" in Javascript.
- The basics - types and general rules of conversion
- Automatic type conversion
- Explicit type conversion
- 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