call back function

call back function

HI ALL,

Can someone please tell me how a function definition passed as argument to another function in jquery ??
how it works.

if you have a look in the below example:- where the function definition is passed as a argument

$(document).ready(function(){
    $("button").click(function(){
        $("p").hide("slow", function(){
            alert("The paragraph is now hidden");
        });
    });
});

Please explain me I am very confused,I am in learning stage.

Thank You Very Much,Pratap