3.15

         3.15 Study diary

      The type of the array is also object, which means that in Javascript, the array is essentially just a special kind of object. Essentially, an array is an object. The type returned by the typeof operator is object.

   parseInt(): Parse the string into an integer. It should be noted that when the string is parsed into an integer, it is parsed character by character. If a character that cannot be converted to a number is encountered, it will not be parsed, and the returned value has been Parse completed alphanumeric.

       There are two ways to convert to string

toString() method: Almost every value has a toString() method, except null and undefined.

String() method: This method can convert almost all types of values ​​into strings.

The length property returns the number of members of the array.
Javascript uses 32-bit integers to store the number of elements in an array, so the maximum value of length is 232-1.
As long as it is an array, there is a length attribute, and the length attribute is a dynamic value equal to the largest integer in the key name + 1.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325643082&siteId=291194637