1 2 3 4 5 6 7 8
var MyNamespace; MyNamespace.MyClass = function(msg) { this.msg = msg; this.sayHello = function() { return this.msg; }; };