Skip to content

Instantly share code, notes, and snippets.

@avand
Last active September 30, 2016 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avand/7661163c2ae2273b77e35e04877dceb2 to your computer and use it in GitHub Desktop.
Save avand/7661163c2ae2273b77e35e04877dceb2 to your computer and use it in GitHub Desktop.
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