title: What does History.length class method do?
body: <p>I typically use <code>window.history</code> to access the <code>History</code> <a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/history" rel="nofollow noreferrer">web API</a>, however I noticed that on MDN there is are static singleton methods/properties on the global <code>History</code> object such as <code>History.length</code>.</p>
  
  <p>I noticed that <code>History.length</code> returns <code>0</code> that is incorrect while <code>window.history.length</code> returns a <code>non-zero</code> value that is correct.</p>
  
  <p>What is the purpose of the former? Why does it return the wrong value?</p>