Java Script
Java Script
Another example
elements into
A collects all
remaining array
* p, , none,
Arguments keyword
Before rest parameters existed, to get all the arguments in a function we used arguments which is an array-like
object.
function someFunction() {
return arguments;
}
The downside of using the arguments keyword is that, it returns an array-like object; this means you
essentially cannot perform any array-methods like; Array.filer, Array.map. Another pitfall, is that we cannot use
arguments in arrow functions. This is because arrow-functions do not have their own this, and hence no
arguments object either.
https://scotch.io/bar-talk/javascripts-three-dots-spread-vs-rest-operators543
* Spread operator
→
unpaeke 1 expands elements
it be used in
→ not
only corsage can
any
iteration like
array string object, ,
g- concatenating garage
copying arrays
adding new elements / fields
Toothy or
Falsy
methods
for assigning
Nallish
Coalescing Operators? :D default Valens
Its side of
* a
logical operator raters Rite it when
kits is null 00
undefined
fits is null ,
undefined ,
"
,O , NaN
• NA '
↳ HI
↳ NA