Take it easy, sit back and relax
1: Create arrays using literals
Use indexOf, for example: arr.indexOf(yuan);// It searches from front to back
Use lastIndexOf, for example: arr1.lastIndexOf(yuan);// It searches from back to front.
Note that if the array does not contain that content, it will return -1.
Using charAt, you can return the character at the corresponding position in the string.
Using charCodeAt, it returns the ASCII code of the corresponding character in the string.
str[index], returns the character as a string. It is used in HTML5, with compatibility issues.
TEXT_MARKDOWN