Is there a way to return a value from a method – other than setting a global variable that the calling method can check?
Returning a value when? When calling the method from another method?
Paul
this should be the way to go:
method.1:
var value = globals.method(othervalue, nextvalue);
globals.method:
var ov = arguments[0];
var nv = arguments[1]; //etc...
return ov+nv; //or whatever but this returns the new value
Right. Thanks.