scrimba
JS Deep Dive
Async JS
Dead-Simple Promises with async-await
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Dead-Simple Promises with async-await
AboutCommentsNotes
Dead-Simple Promises with async-await
Expand for more info
index.js
run
preview
console
fetch('https://jsonplaceholder.typicode.com/posts/1')
.then(response => response.json())
.then(data => console.log(data));
Console
{userId:
1
, id:
1
, title:
"sunt aut facere repellat provident occaecati excepturi optio reprehenderit"
, body:
"quia et suscipit suscipit recusandae consequuntur expedita et cum reprehenderit molestiae ut ut quas totam nostrum rerum est autem sunt rem eveniet architecto"
}
,
/index.html
-10:18