JavaScript – Global parseInt() Method
The JavaScript parseInt() method parses a value as a string and returns the first integer.
The JavaScript parseInt() method parses a value as a string and returns the first integer.
The Number toFixed() method converts a number to a string, while rounding the string to a specified number of decimals.
The Number toLocaleString() method returns a number as a string, using locale settings.
The Object toString() method returns an object as a string or “[object Object]” if it cannot return a string.
The JavaScript RegExp toString() method returns the string value of the regular expression.
The String charAt() method returns the character at a specified position in a string.
The String charAt() method returns the Unicode (UTF-16) of the character at a specified position in a string.
The String codePointAt() method returns the Unicode of the character at a specified position in a string.
The String concat() method joins two or more strings, returning a new string, without changing the existing strings.
The String constructor property returns the function that created the String prototype.
The String endsWith() method returns true if a string ends with a specified string, if not, it returns false. The method is case sensitive.
The String.fromCharCode() method converts Unicode values to characters.
The String includes() method returns “true” if a string contains a specified string, if not, it returns “false”. The method is case sensitive.
The String indexOf() method returns the position of the first occurrence of a value in a string, and returns -1 if the value is not found.
The String lastIndexOf() method returns the position of the last occurrence, searching from the end to the beginning, of a specified value in a string.
The String length property returns the length of a string. An empty string will return 0.
The String localeCompare() method compares two strings in the current locale, and returns their sort order -1, 1, or 0 (before, after, equal).
The String match() method matches a string against a regular expression, returning an array with the matches or null if no match is found.