title: difference between document.cookie and res.cookie
body: <p>When making cookies in the client computer,</p>
  
  <p>All I know was res.cookie</p>
  
  <p>for example (in nodejs-express), </p>
  
  <pre><code>app.get('/', (req, res) =&gt; {
      res.cookie('count', 1);
      res.send('something');
  }
  </code></pre>
  
  <p>but I found that I can also make cookies with using document.cookie.</p>
  
  <p>So what is the major difference between those two when making cookies?</p>
  
  <p>(likewise when reading cookies, req.cookies vs document.cookie)</p>
  
  <p>Is document.cookie more bigger concept than res.cookies or req.cookies? 
  without need of any req, res parameter, so whenever want to make cookies then I can just using document.cookie?</p>
  
  <p>I`ve already read the articles of w3school about what the document.cookies, req.cookies, res.cookies. but cannot figure out the differences existing between those. </p>
  
  <p>thanks.</p>