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?'/', 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.

Find more questions by tags Node.jsJavaScript