Chapter 3: Functions Flashcards

1
Q

Function declaration syntax (3)

A

let/const name = function(arguments){
block
}

OR

function name(arguments) {
block
}

OR

let/const name = (arguments) => {
block
}

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

Recursion (pro and con)

A

A function that refers to itself (more intuitive, less performant)

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