What is Namespace in Javascript ?

In JavaScript, namespace is a single global object which will contain all our functions, methods, variables.

Javascript don’t provide default namespace you have to create it, so all functions, variables and object in Javascript are by default global.



You May Interest

JavaScript Getting Absolute Value

What is Difference Between Call and Apply Methods in Javascript ?

What is Promise in Javascript ?

What are Different Error Types in Javascript ?

What is Prototype in Javascript ?