Invoking third argument as function
<html>
<head>
<title>Pass Me</title>
</head>
<body>
<script type="text/javascript">
function funcObject(x,y,z) {
alert(z(x,y));
}
// third parameter is function
funcObject(1,2,function(x,y) { return x * y});
</script>
</body>
</html>
Related examples in the same category