String Function 1. charAt(): This method returns the character from the specified index.Characters in a string are indexed from left to right. The index of the first character is 0, and the index of the last character in a string called stringName is stringName.length - 1. Syntax: string.charAt(index); Return Value: Returns the character from the specified index. Example: <html> <head> <title>JavaScript String charAt() Method</title> </head> <body> </body> </html> Output: str.charAt(0) is:T 2. concat(): Description: This method adds two or more strings and returns a new single string. Syntax: string.concat(string2, string3[, ..., stringN]); parameters: string2...stringN : These are the strings to be concatenated. Return Value: Returns a single concatenated string. Example: <html> <head> <title>JavaScript String concat() Method</title> </head> <body> </body> </html> Output: Concatenated String :This is string oneThis is string two. 3. indexOf(): Description: This method returns the index within the calling String object of the first occurrence of the specified value, starting the search at fromIndex or -1 if the value is not found. Syntax: string.indexOf(searchValue[, fromIndex]) Parameters: searchValue : A string representing the value to search for. fromIndex : The location within the calling string to start the search from. It can be any integer between 0 and the length of the string. The default value is 0. Return Value: Returns the index of the found occurrence otherwise -1 if not found. Example: <html> <head> <title>JavaScript String indexOf() Method</title> </head> <body> <br />"); var index = str1.indexOf( "one" ); document.write("indexOf found String :" + index ); </body></html> Oputput: indexOf found String :8 indexOf found String :15 4. lastIndexOf(): Description: This method returns the index within the calling String object of the last occurrence of the specified value, starting the search at fromIndex or -1 if the value is not found. Syntax: string.lastIndexOf(searchValue[, fromIndex]) Parameters: searchValue : A string representing the value to search for. fromIndex : The location within the calling string to start the search from. It can be any integer between 0 and the length of the string. The default value is 0. Return Value: Returns the index of the last found occurrence otherwise -1 if not found. Example: <html> <head> <title>JavaScri