title: How to inherit from a class in javascript?
body: <p>In PHP/Java one can do:</p>
  
  <pre><code>class Sub extends Base
  {
  }
  </code></pre>
  
  <p>And automatically all public/protected methods, properties, fields, etc of the Super class become a part of the Sub class which can be overridden if necessary.</p>
  
  <p>What's the equivalent for that in Javascript?</p>