Currently, I'm in the process of organizing my JavaScript code into separate libraries. Within the net top-level-domain, I manage two companies - net.foxbomb and net.matogen.
var net = {
foxbomb : {
'MyObject' : function() {
console.log ("FoxBomb")
}
}
}
var net = {
matogen : {
'MyObject' : function() {
console.log ("Matogen");
}
}
}
var f = new net.foxbomb.MyObject();
var m = new net.matogen.MyObject();
However, upon defining these two nets, I've encountered issues as it doesn't seem to be working correctly. Can someone please advise on the correct approach to resolve this?