Mon Jul 25 2022
So, let's start
toLocaleString() - This method used to represent number object as human readable locale-specific string. Means, if the locale uses a comma for the decimal point, the viewer will see a comma, rather than a period, even if you use a period in the number.
search() - This method use for searching string by matching a regular expression and String object.
trim() - It used to removes any whitespace characters from both the beginning and ending of a particular string. This method is good for cleaning up data before operating on it.
encodeURI() - It encodes a string to use for a URI. It replaces all the whitespace and other non-URI character with their respective codes.
isNaN() - It used to determine whether a value is an illegal number or not. This method returns true if the given value equates to NaN (Not a Number), otherwise it returns false.
random() - It used to returns a floating-point, pseudo-random number in the range between 0 (inclusive) and 1 (exclusive), which you can then scale to your desired range.
test() - This method search string for text that matches the regular expression. If it finds a match, then returns true, otherwise returns false.