mdn/js/0_javascript_first_steps/7_arrays

7_arrays

dz / mdn / js / 0_javascript_first_steps / 7_arrays

Summary

Arrays

Node Tree

Nodes

array
content array
children filter, indexOf, join, length_prop, list_like_object, map, multidimensional, pop, push, splice, split, typed_arrays, unshift, access_items_for_of, accessing, creating

list_like_object
content List-Like Object
parents array

creating
content creating
parents array

length_prop
content Length Property
parents array

accessing
content accessing
children index
parents array

index
content index
parents accessing

multidimensional
content Multidimensional
parents array

push
content push(): add items
parents array

pop
content pop(): remove last item
parents array

splice
content splice(): remove item at index
parents array

indexOf
content indexOf(): finds index of value
parents array

unshift
content unshift(): add item to start
parents array

access_items_for_of
content Access every item using for .. of statement
children for_of_example (example of syntax)
parents array

map
content map(): apply functin to every item in array
parents array

for_of_example
content for (const bird of birds) {}
parents access_items_for_of

filter
content filter(): return items in array that only match certain test.
parents array

split
content split(): splits strings into substrings using separator
children join (opposite)
parents array

join
content join(): concatentates array of strings using separator
parents array, split

typed_arrays
content typed arrays
parents array