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 Using For Loop

JavaScript Concatenating Arrays

What are Deferred Scripts in Javascript ?

What is this Keyword in Javascript ?

JavaScript Taking the Square Root of a Number