title: What is meaning of locals in res.render (node.js)?
body: <p>what is difference between below two code block in Node.JS (express + ejs)?</p>
  
  <pre><code>res.render('demo', {locals:{"variable":data}});
  </code></pre>
  
  <p>AND</p>
  
  <pre><code>res.render('demo', {"variable":data});
  </code></pre>
  
  <p>When to use which one? can any one please help me out in this.</p>