I\'m using Javascript with jQuery. I\'d like to implement out params. In C#, it would look something like this:
/* * odp the object to test * error
I think this is pretty much the only way (but I am not a hardcore JavaScript programmer ;)).
What you could also consider is to use a callback function:
function onError(data) { // do stuff } function isLegal(odp, cb) { //... if(error) cb(error); return false; } isLegal(value, onError);