DEV Community

Cover image for Array – JavaScript Series – Part 20
Muhammad Ali (Nerdjfpb)
Muhammad Ali (Nerdjfpb)

Posted on • Originally published at

Array – JavaScript Series – Part 20

We know about variable right? Now we are going to learn about data structures.

In computer science, a data structure is a data organization, management, and storage format that enables efficient access and modification. More precisely, a data structure is a collection of data values, the relationships among them, and the functions or operations that can be applied to the data. [wikipedia]

I think it’s easy enough to understand. Up until now we were just using the variable to store a single data, now we are going to learn about array where we can store multiple data.

It’s easy. we need to initial a variable and put some values in there.

See this is so easy –

Alt Text

In the browser we can see some interesting things about the array. There is some indexing here of the each elements.

Alt Text

Array indexing count from one. If we want, we can just console log Chandler using array –

Alt Text

If you give a value which is more than index value then it will give you undefined –

Alt Text

Do you understand the Array ?

You can see the graphical version here

Source Codes - { Check commits }

GitHub logo nerdjfpb / javaScript-Series

A tutorial for JavaScript Beginners


A tutorial for Absolute Beginners of JavaScript.

You can find the total pdf in - Here

You can check the commits to find the part by part codes.


Day 1
  • Day 1 - What is JavaScript?
Day 2
  • Day 2 - JavaScript Types?
Day 3
  • Day 3 - Javascript Types Cont.
Day 4
  • Day 4 - Javascript Types Cont.
Day 5
  • Day 5 - Javascript Comparisons
Day 6
  • Day 6 - Javascript Variables
Day 7
  • Day 7 - More About Variables
Day 8
  • Day 8 - Conditional Statement
Day 9
  • Day 9 - More Conditional Statement
Day 10
Day 11
Day 12
Day 13
Day 14
Day 15
Day 16
Day 17

Originally it published on nerdjfpbblog. You can connect with me in twitter or linkedin!

Top comments (0)