Answer the question
In order to leave comments, you need to log in
How to have a sequence of conclusions??
Can't figure out async in nodejs.
I took this example:
function display(data, callback){
setTimeout(function(){
callback(null, data);
}, 0);
}
console.log("Начало работы программы");
display("Обработка данных...", function (err, data){
if(err) throw err;
console.log(data);
});
console.log("Завершение работы программы");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question