Can a callback have parameters defined?
<p>I know it's maybe an fairly easy basic knowledge for you, here I need to ask your help to see whether there is a 'hole' behind to improve. Please check the code below, can I set 'response' as callback parameter but not callSvc's? instead of this kinda 'tricky' way? </p>

<pre><code>function callSvc(response, callback){
    callback(response);
}

callSvc("I'm a response!",function(param_response){document.write(param_response);});
</code></pre>

<p>Thanks..  </p>

<p><strong>Update</strong></p>

<p>Maybe this is good enough?</p>

<pre><code>function callSvc(callback) {
    callback("response");
}
callSvc(function(data) {
    document.write(arguments[0]);
});
</code></pre>
