title: Get each digit of a number
body: <p>What's the best way to get the Nth digit of a number in javascript?</p>
  
  <p>For example, for <code>31415926</code>, the function will return 1 if <code>N=2</code>.</p>
  
  <p><strong>EDIT</strong>: And if possible, tu return directly a number, not a string.</p>
  
  <p><strong>EDIT 2</strong>: It is from left to right.</p>