javascript substring

Posted by manu1001 on Stack Overflow See other posts from Stack Overflow or by manu1001
Published on 2010-01-01T16:46:42Z Indexed on 2010/04/29 16:27 UTC
Read the original article Hit count: 293

Filed under:
|

the most darndest thing! the following code prints out 'llo' instead of the expected 'wo'. i get such surprising results for a few other numbers. what am i missing here?

alert('helloworld'.substring(5, 2));

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about substring