Source: https://developer.mozilla.org/el/docs/Web/JavaScript/Reference/Operators/function
"Function expressions in JavaScript are not hoisted, unlike function declarations. You can't use function expressions before you declare them."
Example:
var hey = function(){
console.log("hi");
}
Chrome's console: window.hey returns
function (){
console.log("hi");
}