Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const response = fetch('https://jsonplaceholder.typicode.com/todos')
- response
- .then(data => data.json())
- .then(result => {
- console.log(result)
- // do more things with result
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement