title: Javascript: substring time complexity
body: <p>What is time complexity of javascript's substring method? </p>
  
  <p>I think implementation of this method may be same as Java but for Java now substring has <code>O(N)</code> complexity from Java7 onwards and <code>O(1)</code> for pre-Java7.</p>