title: What are the differences between history.pushState & location.hash?
body: <p>I want to update the URL using <code>window.location.hash</code> or <code>history.pushState</code>.</p>
  <p>What are the differences and advantages of each method?</p>