You are here: irt.org | About | Feedback | 410 [ previous next ]
Feedback on:
irt.org FAQ Knowledge Base Q424
Sent by
Paul Fazio on August 26, 1999 at 10:30:04:
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
Your code works correctly. 41 is hexadecimal for 64. If you'll notice your table shows when i=10 the charCodeAt() returns 16, when i=11 charCodeAt() returns 17, etc. through i=19 at which point charCodeAt() returns 25, then when i=20 charCodeAt() jumps up to 32. That's because hexadecimal continues past 19 with 1A,1B,1C,1D,1E and 1F (which would be 26,27,28,29,30, and 31 respecively).