Arrays we always come in handy when developing projects and applications, website and many more.
They are useful when it come in making projects such as a Logging Form, To-Do List and many more similar projects. Learning about arrays is fundamental for any web developers as you can get to understand how a website will work without having a basic understanding of this very important topic.
Push method – Adds a new element at the end of an array
pop method- Removes an element at the end of an array
shift method – Removes an element at the start of an array
unshift method- Adds an element at the start of an array
concat method – Merges two or more arrays elements
includes method- Looks for a value or element in an array
index Of method-its just like the str.index of
join method- create a string from an array
reverse method-Reverses an array
slice method-It copes portions of an array
sort method-It sorts an array
Creating Arrays methods - Here one learns several ways of creating arrays
Looping through arrays - here we see several ways of looping through an array such as the For Loop, For Of Loop, FOR/IN loop, WHILE LOOP
Iterating through arrays