Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 175 Bytes

push.md

File metadata and controls

10 lines (6 loc) · 175 Bytes

Push

You can push certain items to an array making the last index the item you just added.

var array = [1, 2, 3]; 

array.push(4); 

console.log(array);