string - javascript substring - Stack Overflow
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'.substri... ... Check the substring syntax: substring(from, to) fro...