I am reading a book on Google Scripting, and don't understand the syntax or what the last line accomplishes after the function closes (between here). Am I to read that as: Objectname or empty object brackets? What might this possibly mean?
var Objectname = (function (parameter) {
//additional scripting omitted here
return parameter;
}) (Objectname || {}); //I don't understand the purpose of this final statement: (Objectname || {})