I've been looking for answers why my javascript code is totally on my webhost. I have existing javascript functions that used to work fine until I tried to modify them using the revealing module pattern in javascript because from what I gathered this is good practice to reduce polluting the global namespace. There are no function calls outside this scope so I did not use return to point to functions. It worked okay in different browsers while testing from Visual Studio.
Is there something maybe in godaddy server that I need to configure? I tried to call them for support but no help. Below is sample of my code. I actually have more functions in this scope but kept it short for this question. Thanks in advance.
myModule = (function () {
//add upDate
function timeOfUpdate {
var timeOfUpdate = new Date(document.lastModified);
$("#lastUpdate").append(timeOfUpdate);
}
//add some more functions
function modTwo {
//add code to execute..
}
})();