Array Test Bed

Results

items[] contents at start:  
JavaScript code:  
items[] contents after JavaScript:  
Returned value:  
Explanation: blah

Reset array

Splice

items.splice(2,1,'coat','scarf');

Push

items.push('umbrella','shirt');

Unshift

items.unshift('tie','pants');

Shift

items.shift();

Pop

items.pop();

Slice

items.slice(1,2);

Reverse

items.reverse();

Join

items.join(':');

+

Test Beds

jQuery Resources