Expert Developer JavaScript Question: Download Expert JavaScript Developer PDF
What is namespacing in JavaScript and how is it used?
Answer:
Namespacing is used for grouping the desired functions, variables etc. under a unique name. It is a name that has been attached to the desired functions, objects and properties. This improves modularity in the coding and enables code reuse.
Previous Question | Next Question |
What is NaN in JavaScript? | What is the difference between script type and the script language attributes? |