Posts by Matheus Alves • 21 points
2 posts
-
1
votes1
answer303
viewsA: How to return a value instead of a [Object Promise]
You are using async/await syntax incorrectly. The correct would be: try { const response = await axios.get(urlYandex); return response.data.text[0]; } catch(error) { return error; } If using the…
-
1
votes1
answer26
viewsA: Help with Jquery field validation
To make this function generic, you can capture the event of all input elements with the attribute 'required'. You will know which id/name to recover, because in the Callback function you will return…