#Day13 of #100DaysOfCode
Understanding Arrays & common array methods in #javascript :
An array is used to store multiple values in a single variable.
Syntax :
https://abs.twimg.com/emoji/v2/... draggable="false" alt="👇" title="Rückhand Zeigefinger nach unten" aria-label="Emoji: Rückhand Zeigefinger nach unten">
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
https://abs.twimg.com/emoji/v2/... draggable="false" alt="👇" title="Rückhand Zeigefinger nach unten" aria-label="Emoji: Rückhand Zeigefinger nach unten">
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
https://abs.twimg.com/emoji/v2/... draggable="false" alt="👇" title="Rückhand Zeigefinger nach unten" aria-label="Emoji: Rückhand Zeigefinger nach unten">
#100DaysOfCode
push (): Add an element in the end of array
#100DaysOfCode
shift (): Remove the first element of an array
https://abs.twimg.com/emoji/v2/... draggable="false" alt="👇" title="Rückhand Zeigefinger nach unten" aria-label="Emoji: Rückhand Zeigefinger nach unten">
shift (): Remove the first element of an array
#100DaysOfCode
pop(): Remove the last element of an array
https://abs.twimg.com/emoji/v2/... draggable="false" alt="👇" title="Rückhand Zeigefinger nach unten" aria-label="Emoji: Rückhand Zeigefinger nach unten">
pop(): Remove the last element of an array
#100DaysOfCode
unshift (): Add element at the start of an array
https://abs.twimg.com/emoji/v2/... draggable="false" alt="👇" title="Rückhand Zeigefinger nach unten" aria-label="Emoji: Rückhand Zeigefinger nach unten">
unshift (): Add element at the start of an array
Read on Twitter
" title=" #Day13 of #100DaysOfCode Understanding Arrays & common array methods in #javascript :An array is used to store multiple values in a single variable.Syntax :https://abs.twimg.com/emoji/v2/... draggable="false" alt="👇" title="Rückhand Zeigefinger nach unten" aria-label="Emoji: Rückhand Zeigefinger nach unten">" class="img-responsive" style="max-width:100%;"/>
" title=" #100DaysOfCodeEccessing an element in an array is index based https://abs.twimg.com/emoji/v2/... draggable="false" alt="👇" title="Rückhand Zeigefinger nach unten" aria-label="Emoji: Rückhand Zeigefinger nach unten">" class="img-responsive" style="max-width:100%;"/>
" title="Some common methods in arrays are: #100DaysOfCodepush (): Add an element in the end of array https://abs.twimg.com/emoji/v2/... draggable="false" alt="👇" title="Rückhand Zeigefinger nach unten" aria-label="Emoji: Rückhand Zeigefinger nach unten">" class="img-responsive" style="max-width:100%;"/>
" title=" #100DaysOfCodeshift (): Remove the first element of an array https://abs.twimg.com/emoji/v2/... draggable="false" alt="👇" title="Rückhand Zeigefinger nach unten" aria-label="Emoji: Rückhand Zeigefinger nach unten">" class="img-responsive" style="max-width:100%;"/>
" title=" #100DaysOfCodepop(): Remove the last element of an array https://abs.twimg.com/emoji/v2/... draggable="false" alt="👇" title="Rückhand Zeigefinger nach unten" aria-label="Emoji: Rückhand Zeigefinger nach unten">" class="img-responsive" style="max-width:100%;"/>
" title=" #100DaysOfCodeunshift (): Add element at the start of an array https://abs.twimg.com/emoji/v2/... draggable="false" alt="👇" title="Rückhand Zeigefinger nach unten" aria-label="Emoji: Rückhand Zeigefinger nach unten">" class="img-responsive" style="max-width:100%;"/>