Intro to Arrays

Published on: September 17, 2016

Welcome to the thirteenth Easy JavaScript Tutorial, Beginner JavaScript Tutorial, part of Easy Programming! This tutorial introduces arrays in JavaScript.  

Generally speaking, an array is a special variable used to store a list of data. You can access each list item by using their numbered index (unlike other programming languages, you cannot use named indexes for JavaScript arrays). This tutorial only covers one-dimensional arrays.

Declaring an Array:

var month = ['January','February','March'];

or

var month = new Array('January', 'February','March');

To fork the fiddle and follow along: https://jsfiddle.net/easyjs/LkcgmLun/

Remember to checkout the Resources section below for associated downloadable content, JSFiddle links, and other resources. Watch the video and follow along!

Resources:



Comments: