scrimba
Frontend Career Path
Working with APIs
Async JS
Callback functions intro
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

AboutCommentsNotes
Callback functions intro
Expand for more info
index.js
run
preview
console
document.getElementById("new-deck").addEventListener("click", function() {
fetch("https://apis.scrimba.com/deckofcards/api/deck/new/shuffle/")
.then(res => res.json())
.then(data => console.log(data))
})

Console
/index.html
-3:38