Skip to content

Instantly share code, notes, and snippets.

@hussaintamboli
Last active August 1, 2018 04:33
Show Gist options
  • Save hussaintamboli/5962d51c6d21dabedc306a75d821583b to your computer and use it in GitHub Desktop.
Save hussaintamboli/5962d51c6d21dabedc306a75d821583b to your computer and use it in GitHub Desktop.
JS Bin// source http://jsbin.com/raranenule
fetch('http://www.mocky.io/v2/5b6137303000007f006a4018').then(function(response) {
return response.json();
}).then(function(data) {
console.log(data);
}).catch(function(err) {
console.log(err.stack);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment