How to make a response were sent after the action?

I want the response sent after the entire code is executed. You can do that?

app.post('/', async function(req, res) { 
 ... //code
Res. send("ok")
});
April 19th 20 at 12:07
1 answer
April 19th 20 at 12:09
Read about async/await and all questions will disappear. There's just.
https://learn.javascript.ru/async-await

Find more questions by tags Node.jsJavaScript