I have function expression in javascript like this:
(function () {
.
//code here
.
.
}());
how do I call it from somewhere else like from another function.
I have tried this.
var bind = (function () {
//code here...//
}());
and called it in some other function like
bind();
or
new bind();
or
var b = new bind();
but it doesn't work. How can I fix this?