02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School

Arrays

Intro to another complex data type, but the array is structured. How to use and define them: learn well, because you'll be seeing many, many of them in time to come. Create several different ones: push, pop and shift! (Geek speak for 'shake, rock & roll.')

Duration:

01:12:56

Created with

Ben Fhala

Ben Fhala

Ben Fhala is the creative force and founder behind 02geek, a pioneering platform dedicated to making web development accessible to everyone. With over 18 years of experience in the industry, Ben has a deep passion for teaching and a knack for breaking down complex concepts into easy-to-understand lessons.

Arrays Overview

What you'll learn

Arrays are a vital part of programming, as they allow a programmer to store more than one value in a variable; Contrary to objects they enable us to index values.

Overview

02:27

new Array();

03:37

Array vs. Object

03:18

Setting a size to our Array

03:28

Starting Up With Content

02:18

Working With Arrays

08:36

Editing Array Data

07:07

push

03:48

unshift

03:11

Intergrating Into Our Mini App

04:54

pop and shift

05:51

indexOf vs. lastIndexOf

It's very simple: an array is like a line. imagine that there are 20 people standing in a line every one has there own name.

09:29

splice

09:48

reverse

01:47

[]

01:47

Summary

01:30