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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are JavaScript functions ?

A

are first-class objects, so they have properties and methods like any other object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are .map() , .forEach(), .filter() ?

A

iterator methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly