Created
September 30, 2018 11:48
-
-
Save praveenweb/e33156390dfb21bd9730c9c43c55d102 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fetch('http://example.com/todos') | |
| .then(function(response) { | |
| // some data processing | |
| const first_todo = response.todos[0].text; | |
| return first_todo; | |
| }) | |
| .then(function(myJson) { | |
| console.log(JSON.stringify(myJson)); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment