Array – JavaScript Series – Part 20
Muhammad Ali (Nerdjfpb) - Feb 13 '20 - - Dev Community
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 ?
You can see the graphical version here
Source Codes - { Check commits }
A tutorial for JavaScript Beginners
javaScript-Series
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.
Blogs
-
Day 1 - What is JavaScript?
-
Day 2 - JavaScript Types?
-
Day 3 - Javascript Types Cont.
-
Day 4 - Javascript Types Cont.
-
Day 5 - Javascript Comparisons
-
Day 6 - Javascript Variables
-
Day 7 - More About Variables
-
Day 8 - Conditional Statement
-
Day 9 - More Conditional Statement
Originally it published on nerdjfpbblog. You can connect with me in twitter or linkedin!