What is the difference between the internal and external modules?
Internal Modules | External Modules |
---|---|
Internal modules consist of local or exported members of other internal modules. | These are separately loaded bodies of code that have been referenced using some external module names. |
Are declared using ModuleDeclarations specifying their name and body. | Are declared using AmbientModuleDeclarations in the global module directly specifying the external module names as string literals. |
BY Best Interview Question ON 17 Aug 2020