title: What is exports and prototype in Javascript?
body: <p>I am new to Javascript and am seeing a lot of usage of exports and prototype in the code that I read. What are they mainly used for and how do they work?</p>
  
  <pre><code>//from express
  var Server = exports = module.exports = function HTTPSServer(options, middleware){
    connect.HTTPSServer.call(this, options, []);
    this.init(middleware);
  };
  
  Server.prototype.__proto__ = connect.HTTPSServer.prototype;
  </code></pre>