Lesson 19 of 50

Fetch API

fetch("https://api.example.com")
  .then(res => res.json())
  .then(data => console.log(data));
← Previous Next →