String Functions

These functions assist with separating the strings either from DOM control or from APIs or AJAX sources.
IndexOf() - It is utilized here to find the situation of any string It gives the principal event of the substring.
lastIndexOf() - To get the situation of the last substring.
Slice() - To get a substring from a string. Notwithstanding, different capacities help to get the substrings like substring(), substr();
Replace() - We can likewise replace a specific string with another string.
ToUpperCase() - We can likewise change over the entire solid to a capitalized.
ToLowerCase() - We can likewise change the entire string over to lowercase.
Concat() - To concat any two strings.
Trim() - To eliminate every one of the void areas in the string from the beginning of the string and end of the string.
CharAt() - To separate any person from a string.
0 Comments