title: Google script/JavaScript: What does this do following an object: (Objectname || {});
body: <p>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?</p>
  
  <pre><code>var Objectname = (function (parameter) {
  
    //additional scripting omitted here
  
    return parameter;
  
  }) (Objectname || {});  //I don't understand the purpose of this final statement: (Objectname || {})
  </code></pre>