title: Why is Math.pow(16, 6) not equal to parseInt(0xFFFFFF, 10)?
body: <p>I'm dealing with CSS colours and hex encoding. The colour white is expressed in CSS RGB notation as a the hexadecimal #FFFFFF, or 0xFFFFFF in Javascript.</p>
  
  <p>If I understand correctly, each position in a hexadecimal number goes from 0 to 16. So a series of six Fs is equal to 16 * 16 * 16 * 16 * 16 * 16, or 16 to the power of 6: Math.pow(16, 6). The result of this operation is 16777216.</p>
  
  <p>We can also parse hexadecimal values to base 10: parseInt(0xFFFFFF, 10). The result of this operation is 16777215.</p>
  
  <p>Why is there a difference of 1 between the two operations?</p>