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

In JavaScript, functions can be treated as ______.

A

In JavaScript, functions can be treated as values.

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

A function can be passed into another function as a _______.

A

A function can be passed into another function as a parameter.

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

A function can be returned by another ________.

A

A function can be returned by another function.

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

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