Light
The 'substring' method is used to extract a specific portion of a string based on the provided start and end indices. The extracted substring includes all characters from the start index up to, but not including, the end index.
A position number indicating an element's location within an ordered collection like an array or string.
Start Index: The position where substring extraction begins.
End Index: The position immediately after which substring extraction ends.