A short personal note: var dayName = function() {}(); is equivalent to var dayName = function() {}; dayName(); You define a function first then invoke it. Modules A beginning programmer writes her programs like an ant builds her hill, one piece at a time, without thought for the bigger structure. Her programs will be like … Continue reading Module in JavaScript