Skip to content

Instantly share code, notes, and snippets.

@avand
Last active Sep 30, 2016
Embed
What would you like to do?
var arr = [];
arr.push("a");
arr.push("b");
arr.push("c");
arr[0]; // => "a"
arr[1]; // => "b"
arr[2]; // => "c"
arr[3]; // => undefined
arr.length; // => 3
arr.pop(); // => "c"
arr.length; // => 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment