Explanatory Question
Give the output of the following string functions:
- "MISSISSIPPI".indexOf('S') + "MISSISSIPPI".lastIndexOf('I')
- "CABLE".compareTo("CADET")
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.