Functions Flashcards

1
Q

What is a function expression or a function declaration?

A
Not hoisted: 
// function expression 
const sayHello = function( ) {
    console.log('hello');
}
Hoisted:
// function declaration 
function sayHello( ) {
  console.log('hello');
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly