Home › Forums › JavaScript › Function name as variable? › Re: Function name as variable?
September 30, 2012 at 10:47 pm
#111057
TheDoc
Member
Why wouldn’t you just call `my_function()`?
What you can do is this:
var newVariable = function () {
// your stuff
});
newVariable();