JavaScript: string functions: substr() vs substring()
The tutor describes the difference between substr() and substring() Let’s imagine the string variable var strng_ex=”this_example_string”; The function substr(4,5) returns 5 characters from the string, starting at the fourth position (which is _, since the first position is 0): strng_ex.substr(4,5) …
JavaScript: string functions: substr() vs substring() Read more »