The formatIndex method returns the supplied integer as a string formatted using the specified numerical system. The integer can be formatted using one of the following formats: