javascript arrays Flashcards
To add a value to an array from the back you can use?
.push()
after adding a value to an array through push method it also returns
the new length of the array.
what is a callback
A callback is a function definition passed as an argument to another function.
what is filters in js
it creates a new array out of the main array
what is .find ()
This is a method of picking one of the elements that comes first or matches the code.
what does The .find() method returns if the doesnt match the element you are looking for.
Undefined
what does The .find() method returns if the doesnt match the element you are looking for.
an empty array []
what Array map does
It changes information about an array
what does array .includes do
.includes check if an array contains a value and it returns a boolean
what does .includes() returns
A boolean
what does .join do
.join is used to join an element togetherwith something
anytime you want to change the state of an array you use
map()