js basics - arrays and data types

Arrays are also reference types

The constructor creates the array

Object constructor type (base class for all types) Array constructor type

The exponentiation operator** 2**32-1 has the largest array capacity

arry.length If you reduce the value of length, it is equivalent to truncating the array. Don't use it like this!

Array literals create arrays Array indices start at 0

var arr = [1,2,'ss',true,{age:19},null,undefined]

 

traversing the array

 

Guess you like

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