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
Here's an example of the login function:
And calling the login function
bad question but w/e
you have mixed up invoking and defining an asynchronous function: