Call before declaration

function is called before its declaration in the source code position

by shengoo

JavaScript

foo();
  
function foo() {
  alert('foo');
}