I have a namespace Utilities in JavaScript, it looks sort of like this:
var Utilities = Utilities || {
printTest: function() { print("test"); }
}
I can call my printTest function with Utilities.printTest(); but I am wondering if I can call it with something like
var Utilities.....
using Utilities;
printTest();
I want it to work similar to how C++ implements namespaces into your code with the using statement. Is there anything similar for JavaScript?
Thanks