SHARE
TWEET

Untitled

edwinjackson Jun 26th, 2019 61 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.     })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top