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'); }