You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The previous version of the text made it reasonable to assume that if the text would be "Mozilla" and the indexes `(1, 3)`, the end result will be the character `z`,
i.e. the string "between the start and end indexes".
Since that would be very unusual, many users might instead assume that it would result in `ozi`. But that would also be incorrect.
This change makes it clear that the function includes the first index and excludes the second.
The **`substring()`** method returns the part of the `string`between the start and end indexes, or to the end of the string.
15
+
The **`substring()`** method returns the part of the `string`from the start index up to and excluding the end index, or to the end of the string if no end index is supplied.
0 commit comments