JavaScript String Methods: Example of substring and Its Parameters