Loosely Typed Environment

Within a loosely typed environment, you can store multiple types of data with a single variable.

For Examples, a variable on one line of code may have the data time value and on the very next line of code same variable may have a stream value within it. Loosely typed environments can not enforce type safety. this type of environment cannot guarantee this because they allow each variable to accommodate any type of data that can be stored within it. In addition, loosely typed environments do not use memory every efficiently. because a variable accommodates any possible type of value. In such a case, when a variable is Initialized or declared the compiler allocates a large portion of memory to each variable.