JavaScript Lessons — Arrays

JavaScript Lessons — Arrays

JavaScript Lessons — Arrays. What is an Array? An Arrays in JavaScript is a global object used in the construction of lists. Arrays in JavaScript are zero-indexed, meaning that the first position of an array is always zero.

Welcome to the first post of this new series about JavaScript that we call JavaScript Lessons, a place where you will be able to learn the basics of JavaScript to become a better developer o refresh some knowledge of the most used topics out there.

Let’s start with the basics. If you’re a more experienced developer, you can skip this initial part or maybe stay and refresh some knowledge.

What is an Array?

An Array in JavaScript is a global object used in the construction of lists.

The prototype, or the core functionality, of the Array includes methods to perform reading, writing, listing and mutation of the elements within the list. The type and the length of an array can change in any time and the data can be stored in non-contiguous positions.

Arrays in JavaScript are zero-indexed, meaning that the first position of an array is always zero.

Creating an array

Creating an array with JavaScript takes little effort.

const people = ['Alex', 'Daniel', 'Rafael', 'May'];

The people variable now holds an array with 4 elements of type string within it, indexed as follows:

  1. Alex
  2. Daniel
  3. Rafael
  4. May

arrays development nodejs javascript node

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Hire Dedicated JavaScript Developers -Hire JavaScript Developers

Hire dedicated JavaScript Developers who are proficient in AngularJS, ReactJS, NodeJS, & VueJS frameworks. Get flexible hiring models as per your business requirements.

Node JS Development Company | Hire Node.js Developers

Looking to hire Node js developers? One of the top Node js development companies in India & USA offers cost-effective Node js web development services.

Hire Top Node JS Developers | Best Node.js Development Company India

Hire dedicated Node JS developers & programmers in India for custom full-stack NodeJS web development projects on hourly/full-time basis. Strict NDA, 16+ years exp & 2500+ clients|450+ Experts

Top Node.js Development Companies and Expert NodeJS Developers

A thoroughly researched list of top NodeJS development companies with ratings & reviews to help hire the best Node.JS developers who provide development services and solutions across the world. List of Leading Node.js development Service Providers...

Hire Dedicated Node.js Developers - Hire Node.js Developers

Get business-centric Node.Js development services from expert Node.JS developers. We have expertise in developing & maintaining Node JS apps as per the business requirements.