TypeScript Namespaces

In TypeScript, namespaces provide a way to organize your code and avoid naming collisions between different parts of your application. Namespaces allow you to group related classes, interfaces, functions, and variables under a single name. The syntax for creating a namespace in TypeScript is as follows: example: Output: RED