These 10 things about JavaScript are very simple but you will find it very useful
1Random:- With it you can create an unknown number. If you want, you can create it within a specified number. This is a very important thing in javascript.
2 Slice:- This method does not change the original array. If something changes, it returns both the new array and the new one.
3 Replace:- This method does not change the calling string object. It simply returns a new string.
4 ToUpperCase:- Using this method you can change any lowercase string to uppercase
5 ToLowercase:- Using this method you can change any string from uppercase to lowercase
6 IndexOf:- indexOf compares the search element to elements of the Array using the same method used by the === or triple-equals operator.
7 EndsWith:- This method lets you determine whether or not a string ends with another string. This method is case-sensitive.
8 CharAt():- The charAt() method returns the character at the specified index in a string. The index of the first character is 0, the second character is 1, and so on. Tip: The index of the last character in a string is string. length-1, the second last character is string.
9 String.substr():- While working with strings , if sometimes we requires a portion of that string, substr method is used. where this method takes the starting index of the portioned string.
10 Concat:- The concat() method is used to join two or more strings. This method does not change the existing strings, but returns a new string containing the text of the joined strings.