JavaScript – Number.prototype Property
The Number.prototype property allows the addition of new properties and methods to numbers.
The Number.prototype property allows the addition of new properties and methods to numbers.
The Number toExponential() method converts a number into exponential notation.
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 Number toPrecision() method formats a number to a specified length, adding a decimal point and zeroes if necessary to achieve the length.
The Number valueOf() method returns the primitive value of a number.
The Object constructor property returns the function that created the Object prototype.
The Object.keys() method returns an array iterator object with the keys of an object, without changing the original object.
The Object prototype property allows the addition of new properties and methods to objects.
The Object toString() method returns an object as a string or “[object Object]” if it cannot return a string.
The Object valueOf() method returns the primitive value of an object, or the object itself if it has no primitive.
In JavaScript RegExp, the “g” modifier specifies a global match, which finds ALL matches, and NOT just the first match.
In JavaScript RegExp, the “i” modifier specifies a case-insensitive match.
In JavaScript RegExp, the “m” modifier specifies a multiline match. ^ specifies a match at the start of a string. $ specifies a match at the end.
The JavaScript RegExp Group [0-9] searches for a specific number in a string.
The JavaScript RegExp Group [^0-9] searches for a specific number NOT in a string.
The JavaScript RegExp Group [abc] searches for a specific character in a string.
The JavaScript RegExp Group [^abc] searches for a specific character NOT in a string.
The JavaScript RegExp Group (x|y) expression is used to find ANY of the alternatives specified.