#Day13 of #100DaysOfCode

Understanding Arrays & common array methods in #javascript :

An array is used to store multiple values in a single variable.

Syntax :👇
#100DaysOfCode
Eccessing an element in an array is index based 👇
Some common methods in arrays are:

#100DaysOfCode
push (): Add an element in the end of array 👇
#100DaysOfCode
shift (): Remove the first element of an array 👇
#100DaysOfCode
pop(): Remove the last element of an array 👇
#100DaysOfCode
unshift (): Add element at the start of an array 👇
You can follow @ssachinaryaa.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled: