~/ Hoisting Can Be Dangerous
If you define a function inside of a conditional, you run the risk of having a function being overwritten via hoisting:
document.write("true is true!")
document.write("true is false!")
truthy(); // will always log "true is false!"
~/ Posted by Jesse Shawl on 2015-04-27