Home

Array.

let a = [ 'IBM', 'Intel', 'Oracle', 'AMD' ]; assert( a.length == 4 ); a.push( 'Microsoft' ); assert( a.length == 5 ); a[ 9 ] = 'Apple'; assert( a.length == 10 ); assert( Array.isArray( a ) ); assert( a instanceof Array ); assert( a[ 1 ] == 'Intel' ); let b = a.slice( 2 ); let c = a.slice( 2, 4 );