title: array.slice(-1)[0] -- Can someone explain?
body: <p>I got this code from codeblocq.com (never heard of the site):</p>
  
  <pre><code>alert(array.slice(-1)[0]);
  </code></pre>
  
  <p>It somehow returns the value of the last element in <code>array</code>. The code works just as it should, but I have no idea how. Could anyone please help me understand this sorcery?</p>