Both the functions below give the same output,right?So what are the uses of using an anonymous function, instead of using a properly named function such as the second one below
function foo () {
// some work done
}
foo();
let foo = function () {
// some work done
}
foo();