Skip to content

Instantly share code, notes, and snippets.

@ivanlynch
Created July 18, 2020 22:50
Show Gist options
  • Save ivanlynch/ef1b5cefbf583adce3213ff5f1483684 to your computer and use it in GitHub Desktop.
Save ivanlynch/ef1b5cefbf583adce3213ff5f1483684 to your computer and use it in GitHub Desktop.
// source https://jsbin.com
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
const currentSymbol = fetch("https://reqres.in/api/users")
.then((res) => {
return res.json();
})
.then((results) => {
console.log(results);
})
</script>
<script id="jsbin-source-javascript" type="text/javascript">const currentSymbol = fetch("https://reqres.in/api/users")
.then((res) => {
return res.json();
})
.then((results) => {
console.log(results);
})</script></body>
</html>
const currentSymbol = fetch("https://reqres.in/api/users")
.then((res) => {
return res.json();
})
.then((results) => {
console.log(results);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment