Classes - Advanced Programming Flashcards
1
Q
Functions can:
- hold a series of _____ that perform some sort of processing.
- may _____ data
- may receive ______ via parameters
A
Functions can:
- hold a series of statements that perform some sort of processing.
- may return data
- may receive input via parameters
2
Q
In JavaScript, functions can be treated as ______.
A
In JavaScript, functions can be treated as values.
3
Q
A function can be passed into another function as a _______.
A
A function can be passed into another function as a parameter.
4
Q
A function can be returned by another ________.
A
A function can be returned by another function.
5
Q
Functions that operate on other functions, either by taking them as arguments or by returning them, are called _____-order functions.
A
Functions that operate on other functions, either by taking them as arguments or by returning them, are called higher-order functions.