title: How to store server side data to client side variable in Google Apps Script?
body: <p>My server side function retrieves some spreadsheet data. I want to store that data in a client side variable, inside a script tag:</p>
  
  <pre><code>&lt;script&gt;
  function myFunction(){
      var data = new Array();
      data =google.script.run.getData(); // getData() is server side function.
  }
  </code></pre>
  
  <p>When I use console.log for <code>data</code>, it is not showing anything.
  Have I called <code>google.script.run</code> in the correct way?</p>
  
  <p>Thanks in advance.</p>