I was reading about this on W3, but I want to know more information about the differences and advantages of declaring a regular function versus declaring a function stored in a variable.
Regular:
function test(){
// code
}
With Variable:
var test = function() {
// code
}