22. Substring. Explanation for position numbers


#1


22.


position numbers confusing

string.substring(start,end)
Parameter Values
Parameter Description
start Required. The position where to start the extraction. First character is at index 0
end Optional. The position (up to, but not including) where to end the extraction. If omitted, it extracts the rest of the string



#2

The explanation you have and in this referenced exercise looks good enough.

That said, check this also: w3schools - Substring


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.