Photo by Matt Briney on Unsplash

13 Steps to become a JavaScript Pro. Step 3: Arrays and Objects

Vincenzo Bifano

--

Mastering Data Structures in JavaScript: A Deep Dive into Arrays and Objects — Step 3 of 13

JavaScript is a popular programming language used to create dynamic and interactive websites. To become proficient in JavaScript, there are several topics to delve into, which this series aims to cover in a non-exhaustive way as a starting point for learning and improving.

Step 1, The Fundamentals is here
Step 2, Understanding the DOM is here

Arrays and objects are the most important data structures in JavaScript, and understanding how to create, manipulate, and use them is essential to becoming a proficient JavaScript developer. Arrays are used to store multiple values in a single variable, while objects are used to store key-value pairs.

Some of the key topics to focus on when learning about arrays and objects in JavaScript include:

  • Creating and initializing arrays and objects
  • Accessing and modifying array and object elements
  • Array and object methods for manipulation, such as push(), pop(), shift(), unshift(), and splice() for arrays, and Object.keys(), Object.values(), and Object.entries() for objects
  • Working with multidimensional arrays and nested objects
  • Understanding the difference between primitive and reference types in JavaScript

Here are five useful links for learning more about arrays and objects in JavaScript:

  1. Mozilla Developer Network — Arrays: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
  2. Mozilla Developer Network — Objects: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object
  3. W3Schools — JavaScript Arrays: https://www.w3schools.com/js/js_arrays.asp
  4. W3Schools — JavaScript Objects: https://www.w3schools.com/js/js_objects.asp
  5. JavaScript.info — Arrays: https://javascript.info/array

And here are five books that can help you deepen your understanding of arrays and objects in JavaScript:

  1. “Eloquent JavaScript” by Marijn Haverbeke : https://eloquentjavascript.net/
  2. “JavaScript: The Definitive Guide” by David Flanagan: https://amzn.to/3ZkP8yF
  3. “JavaScript and jQuery: Interactive Front-End Web Development” by Jon Duckett: https://www.amazon.com/JavaScript-JQuery-Interactive-Front-End-Development/dp/1118531647
  4. “You Don’t Know JS: Up & Going” by Kyle Simpson: https://amzn.to/3IT0www
  5. “Data Structures and Algorithms with JavaScript” by Michael McMillan: https://amzn.to/3ZhRMVS

Note: If you make a purchase by clicking on the links I have provided, as an Amazon Associate I earn from qualifying purchases.

Go to Step 4: Functions and Scope

--

--

Vincenzo Bifano

Husband and father of two rough guys. Grace addicted. Senior Software Architect at Rai Radiotelevisione Italiana. I'm still in beta.