Array - przydatne funkcje


var a = [0, 1, 2];
var b = 7;
a.push(b);
var c = a.pop();

a.forEach(function(val,key){
  console.log(key,val);
});