Function declaration takes precedence over variable declaration in hoisting