Posts by Tiago Theld • 1 point
1 post
-
-1
votes1
answer490
viewsQ: Get fetch return with await/async
recebe(); async function recebe(){ const {url} = await pegaValores(); console.log(url); } async function pegaValores(){ return fetch('http://www.mocky.io/v2/5dba68fb3000007400028eb5')…