Skip to content

Instantly share code, notes, and snippets.

View andressamelo's full-sized avatar

Andressa Melo andressamelo

View GitHub Profile
@andressamelo
andressamelo / async-await.js
Last active August 2, 2020 15:45
JavaScript Request | Async/await
const getUsers = async () => {
const response = await fetch('https://jsonplaceholder.typicode.com/users')
const users = await response.json()
console.log(users)
}
getUsers()
// fetch('https://jsonplaceholder.typicode.com/users')
// .then(response => {