One thing to note is that specifying the start and end indices is optional.
If start is not provided, the substring will have all the characters until the end index.
If end is not provided, the substring will begin from the start index and go all the way to the end.
Let’s see this in action: