ITERATORS Flashcards
1
Q
What are Higher-order functions?
A
Higher-order functions are functions that accept other functions as arguments and/or return functions as output.
2
Q
What are JavaScript functions ?
A
are first-class objects, so they have properties and methods like any other object.
3
Q
What does .map() ?
A
When .map() is called on an array, it takes an argument of a callback function and returns a new array!
4
Q
What are .map() , .forEach(), .filter() ?
A
iterator methods