ORIGINALLY POSTED BY JEREMY MARTIN, FRIDAY, MARCH 14, 2008AT 2:16 PM
What is Loose Typing?
Well, this seems like a good place to start. It is important to understand both what loose typingis, and what loose typing is not. Loose typing means that variables are declared without a type. This is in contrast to strongly typed languages that require typed declarations. Consider the following examples:
Ya really - Null and Undefined too.
Type coercion is a topic that is closely associated with loose typing. Since data types are managed internally, types are often converted internally as well. Understanding the rules of type coercion is extremely important. Consider the following expressions, and make sure you understand them: