You can read the title and can walk away with that. However that would be an injustice to just how great and pivotal arrays are. It’s Emmanuel here, currently going to Flatiron School NYC. I have learned to appreciate arrays and how essential they are to a JavaScript and other languages.
Why would arrays be major key? It’s all about the functionality. Arrays are essentially lists that can hold anything. You can have string, numbers, Boolean, other arrays, objects, and/or variables in a array. What you can do with your list of things is what brings it all together. There are functionality call forEach()or map() which will go through each item in your array and you can do what ever you want to do. You can filter or find specific items in your Array which can help with huge databases. Imagine getting a huge list of names and you want to know all the names that start with J. Filter would be your best friend. And with using that you can then make a new list or delete it from the original list. There is so much to do. When you add objects, another topic for another day, you have everything.
I am just really impressed and intrigued to what possibilities to what a generate from just know how to use array and its related functions. Check back with me in July because that is when I’ll be finished.
Top comments (0)