In JavaScript, if I create a function expression like:
var foo = function foo() {
return 'Hello world!';
}
Is this okay? Will there be any problems that occur? Or should I do:
var foo = function baz() {
return 'Hello world!';
}
In JavaScript, if I create a function expression like:
var foo = function foo() {
return 'Hello world!';
}
Is this okay? Will there be any problems that occur? Or should I do:
var foo = function baz() {
return 'Hello world!';
}