I have some JavaScript code that looks like:
function statechangedPostQuestion() { //alert("statechangedPostQuestion"); if (xmlhttp.readyState==
Answering the question but by a simple addition function with 2 arguments.
var x = 3, y = 4; setTimeout(function(arg1, arg2) { delayedSum(arg1, arg2); }(x, y), 1000); function delayedSum(param1, param2) { alert(param1 + param2); // 7 }