{"id":8600,"date":"2019-01-26T10:01:38","date_gmt":"2019-01-26T15:01:38","guid":{"rendered":"https:\/\/www.carnaghan.com\/?p=8600"},"modified":"2021-03-06T15:48:59","modified_gmt":"2021-03-06T20:48:59","slug":"javascript-arrays-fundmentals","status":"publish","type":"post","link":"https:\/\/www.carnaghan.com\/javascript-arrays-fundmentals\/","title":{"rendered":"JavaScript Arrays – Fundamentals"},"content":{"rendered":"\n

Earlier we looked at datatypes and variables<\/a>. Arrays take the concept of a variable or binding one step further and allow us to form groups of values within a data structure, which we can then manage in our code. A good use for an array is a list of data. Arrays not only let you group data, but they offer a range of tools or methods to update and manipulate their contents. They are used commonly across different programming languages and have become a routine way of passing around data within applications.<\/p>\n\n\n\n

Arrays are also a form of object, which we will be covering later. Once you have mastered arrays, you will quickly realize their strength in managing multiple data points across the code you write. Let’s dig into arrays by considering an example. Below I have included a group of students, who we would like to manage in some JavaScript application. For the purpose of this example, we are only interested in basic information.<\/p>\n\n\n\n