Skip to content

Tag Archives: javascript-string

The JavaScript String valueOf() Method is an inbuilt method in JavaScript that is used to return the value of the given string.Syntax:  string.valueOf() Parameters: It… Read More
A regular expression is a sequence of characters that forms a search pattern. The search pattern can be used for text search and text to… Read More
In JavaScript, the includes() method determines whether a string contains the given characters within it or not. This method returns true if the string contains the… Read More
JavaScript str.substr() method returns the specified number of characters from the specified index from the given string. It basically extracts a part of the original… Read More
The JavaScript String trim() method is used to remove the white spaces from both ends of the given string.  There are two more functions that… Read More
The Javascript str.charCodeAt() method returns a Unicode character set code unit of the character present at the index in the string specified as the argument. … Read More
The JavaScript String.fromCharCode() method is used to create a string from the given sequence of UTF-16 code units. This method returns a string, not a… Read More
The Javascript str.startsWith() method is used to check whether the given string starts with the characters of the specified string or not. This method is case-sensitive.… Read More
JavaScript String lastIndexOf() method finds the index of the last occurrence of the argument string in the given string. The value returned is 0-based. Syntax:… Read More
JavaScript String toUpperCase() method converts the entire string to Upper case. This method does not affect any of the special characters, digits, and the alphabets… Read More
The Javascript str.toLowerCase() method converts the entire string to lowercase. This method does not affect any of the special characters, digits, and the alphabet that… Read More
JavaScript String split() Method is used to split the given string into an array of strings by separating it into substrings using a specified separator… Read More
JavaScript str.includes() function is used to check if the argument string is present in the given string or not. This function is case-sensitive.  The syntax… Read More
The JavaScript str.indexOf() function finds the index of the first occurrence of the argument string in the given string. The value returned is 0-based. Syntax:… Read More
The JavaScript str.endsWith() function is used to check whether the given string ends with the characters of the specified string or not Syntax: str.endsWith(searchString, length)… Read More

Start Your Coding Journey Now!