Posts by Paulo Silva • 1 point
1 post
-
0
votes0
answers16
viewsQ: How to get a response from an asynchronous call in JS?
Hi! I’m doing a query in a database. I need to display this query as soon as possible, and I am not knowing 'encapsulate' it with the await or whatever. The function is as follows: const…