API Calling

by Ttt Yyy

JavaScript

fetch('https://jsonplaceholder.typicode.com/todos/1')
  .then(response => {
  console.log('response', response);
  return response.json()
  })
  .then(json => console.log(json))