Advertisement
edwinjackson

Untitled

Jun 26th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const response = fetch('https://jsonplaceholder.typicode.com/todos')
  2. response
  3.     .then(data => data.json())
  4.     .then(result => {
  5.         console.log(result)
  6.         // do more things with result
  7.     })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement