I am starting a new mini series on JavaScript. I’m starting it from zero. Anyone can start learning from here. My goal is helping others while learning! I know about JavaScript and I’m working on a MERN tech stack. But I think it is not a bad idea to revise the JavaScript from scratch and helping others in this time. If you have any questions, shoot on the comment session or you can directly ask me in my social media. Social media links are in the last part of today’s lesson! Let’s learn JavaScript together.

Array — JavaScript Series — Part 20

A full series to learn the JavaScript from zero

Muhammad Ali
3 min readFeb 13, 2020

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 –

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

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

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

Do you understand the Array ?

Originally it published on nerdjfpb blog. Check the git for codes.

you can connect with me in twitter, linkedin or instagram

--

--

Muhammad Ali
Muhammad Ali

Written by Muhammad Ali

An otaku who loves computer. Love to write and help others through my work. Have a look on my Instagram https://www.instagram.com/nerd_jfpb/

No responses yet