script1.js
var MyNamespace = {};
MyNamespace.addNewFunction = function(a,b,c) {
function doSomething() {
// Perform some action here
}
}
script2.js
MyNamespace.addNewFunction.doSomething() ??
I’m a bit unsure on how to access the contents of doSomething() through the namespace.