All Subjects
Light
A substring refers to extracting a smaller part of a larger string by specifying its starting and ending positions.
congrats on reading the definition of Substring. now let's actually learn it.
index: An index represents the position or location of each character within a string. It helps identify where specific characters are located.
charAt(): The charAt() method returns the character at a specified index within a given string.
indexOf(): The indexOf() method returns the first occurrence's index position of a specified character or substring within another string.