Functions Flashcards

1
Q

what is a functino

A

function is an object that contains a sequence of JavaScript statements

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

what does ‘to call’ mean

A

to run independent pieces of a function

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

function structure

A

function functionName (parameter, parameter){
body of code
}

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

what is hoisting

A

call of function before the function appears in the code

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

function expression structure

A

(function () {
code body
})
or
const name = function (){
return’ ‘;
}

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

What does IIFE stand for

A

Immediately- Involved Function Expression

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

Arrow Function structure

A

const name = (parameter) => parameter

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

Callback Function

A

calling a function in a function

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

What is Scope

A

what you can access in code and where you can access it

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