can anyone give me an example in which we are creating a particular function, which is also having a callback function ?
function login(username, password, function(err,result){
});
where should I put the code of the login function and callback function?
p.s.: I am new to nodejs