What is Loose Typing?
Well, this seems like a good place to start. It is important to understand both what loose typing is, 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:
- var a = 13; // Number declaration
- var b = “thirteen”; // String declaration
- /* Java Example (strong typing) */
- int a = 13; // int declaration
- String b = “thirteen”; // String declaration