Javascript concat() indexOf() lastIndexOf() localeCompare() match() replace() search() slice() split() substr() substring() Combines the text of two strings and returns a new string. Returns the index within the calling String object of the first occurrence of the specified value, or -1 if not found. Returns the index within the calling String object of the last occurrence of the specified value, or -1 if not found. Returns a number indicating whether a reference string comes before or after or is the same as the given string in sorted order. Used to match a regular expression against a string. Used to find a match between a regular expression and a string, and to replace the matched substring with a new substring. Executes the search for a match between a regular expression and a specified string. Extracts a section of a string and returns a new string. Splits a String object into an array of strings by separating the string into substrings. Returns the characters in a string beginning at the specified location through the specified number of characters. Returns the characters in a string between two indexes into the string. toLocaleLowerCase() The characters within a string are converted to lower case while respecting the current locale. toLocaleUpperCase() The characters within a string are converted to upper case while respecting the current locale. toLowerCase() toString() Returns the calling string value converted to lower case. Returns a string representing the specified object. 140

Javascript toUpperCase() valueOf() Returns the calling string value converted to uppercase. Returns the primitive value of the specified object. In the following sections, we will have a few examples to demonstrate the usage of String methods. charAt() charAt() is a method that 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 Use the following syntax to find the character at a particular index. string.charAt(index) Argument Details index: An integer between 0 and 1 less than the length of the string. Return Value Returns the character from the specified index. Example Try the following example. JavaScript String charAt() Method var str = new String( "This is string" ); document.writeln("str.charAt(0) is:" + str.charAt(0)); document.writeln("str.charAt(1) is:" + str.charAt(1)); document.writeln("str.charAt(2) is:" + str.charAt(2)); 141