Skip to content

Instantly share code, notes, and snippets.

@devdays
Created December 2, 2014 20:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save devdays/e0ff2519eb30fe38f5ec to your computer and use it in GitHub Desktop.
Object JavaScript - Using an array
var x = myFlowers.length; // the number of elements in myFlowers
var y = myFlowers.indexOf("Carnation"); // the index position of "Carnation"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment