Problem:
Question 1- What do the methods startsWith and endsWith do? Write an example statement showing how to use one of the methods.
Question 2- How many version of the method indexOf are there ? This is an example of an overloaded method - methods with the same that perform similar function but with different parameters.
Question 3- What is the difference between the lastIndexOf method and the indexOf method?
Could someone help to explain the answer of these questions.