functional expression notHoisted(); // TypeError: notHoisted is not a function var notHoisted = function() { console.log('bar'); }; functional declaration hoisted(); // logs "foo" function hoisted() { console.log('foo'); }