Skip to main content

Fetch


Fetch


References


Doubts

  • How this code works? fetch("api/endpoint").then(res => res.json()).then(data => console.log(data))

Notes

  • How fetch doesn't block the main thread?
  • How fetch is implemented behind the scenes?