I was reading the difference between Function Declaration and Function Expression at here
What is the difference between a function expression vs declaration in JavaScript?
var functionName = function() {} vs function functionName() {}
I came to know about the difference that one is defined at parse time and the other one at run time. But my curiosity is regarding which to use and which not to use and why one will be preffered over other.