Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Function name as variable? Re: Function name as variable?

#111057
TheDoc
Member

Why wouldn’t you just call `my_function()`?

What you can do is this:

var newVariable = function () {
// your stuff
});
newVariable();