Functions Flashcards
1
Q
what is a functino
A
function is an object that contains a sequence of JavaScript statements
2
Q
what does ‘to call’ mean
A
to run independent pieces of a function
3
Q
function structure
A
function functionName (parameter, parameter){
body of code
}
4
Q
what is hoisting
A
call of function before the function appears in the code
5
Q
function expression structure
A
(function () {
code body
})
or
const name = function (){
return’ ‘;
}
6
Q
What does IIFE stand for
A
Immediately- Involved Function Expression
7
Q
Arrow Function structure
A
const name = (parameter) => parameter
8
Q
Callback Function
A
calling a function in a function
9
Q
What is Scope
A
what you can access in code and where you can access it