title: Where does nodejs store its variables?
body: <p>I'm beginning with nodejs + expressjs. I wonder where does all these variables will be stored if i created it on the server?</p>
  
  <p>For example, i declare this object and i add element to it. So this object is going to be bigger.
  It still alive if webserver is still running.</p>
  
  <pre><code>var http = require("http");
  var abc = {}
  
  function start() {
      function onRequest(request,response) {
          console.log("request received")
          response.writeHead(200,{"Content-Type":"text/plain"})
          var id = ( Math.random() * 100000 ) | 0
          abc[id.toString()] = 1
          response.write(Object.keys(abc).length.toString());
          response.end();
      }
      http.createServer(onRequest).listen(8888)
      console.log("Server has started")
  }
  
  exports.start = start
  </code></pre>
  
  <p>Look at <code>abc</code> object, it will have one more element if you refresh the browser.</p>
  
  <p>So how nodejs stores these variables?</p>