scrimba
Frontend Career Path
Working with APIs
URLs & REST
Requests - Headers
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
Requests - Headers
Expand for more info
index.js
run
preview
console
fetch("https://apis.scrimba.com/jsonplaceholder/todos", {
method: "POST",
body: JSON.stringify({
title: "Buy Milk",
completed: false
})
})
.then(res => res.json())
.then(data => console.log(data))
Console
{id:
201
}
,
/index.html
-4:32