Working With Arrays, Part 1
This will be a series on working with arrays. Not sure how long it will be but there is so much rich information about arrays in JavaScript that I don’t think I could fit it all into one post. It may not be a series after all; I may just revisit the topic every now and again.
For instance:
Arrays in JavaScript can have a mixture of data types; in my example above I mix strings, numbers, and a boolean data type in one array.
console.log(indexOfArray.1); // This isn't proper syntax as properties that begin with // a number can't be accessed using dot notation console.log(indexOfArray.0); // This is okay as it is a string
This will be a series on working with arrays. Not sure how long it will be but there is so much rich information about arrays in JavaScript that I don’t think I could fit it all into one post. It may not be a series after all; I may just revisit the topic every now and again.
For instance:
Arrays in JavaScript can have a mixture of data types; in my example above I mix strings, numbers, and a boolean data type in one array.
console.log(indexOfArray.1); // This isn't proper syntax as properties that begin with // a number can't be accessed using dot notation console.log(indexOfArray.0); // This is okay as it is a string
These are some basic facts about JavaScript arrays. Stay tuned for more.
© tiff.RSS