JavaScript > Functions > Flashcards
What is a function expression or a function declaration?
Not hoisted: // function expression const sayHello = function( ) { console.log('hello'); }
Hoisted: // function declaration function sayHello( ) { console.log('hello'); }