Published
Edited
Dec 27, 2020
1 star
Also listed in…
JavaScript Tips
Insert cell
md`# Testing fetch with runkit`
Insert cell
md`Trying out creating a service from Runkit and deploying it here [https://runkit.com/triptych/poop](https://runkit.com/triptych/poop)`
Insert cell
await fetch("https://poop-924vhbtx5bx3.runkit.sh/").then((result)=> {result.text()})
Insert cell
poop_url="https://runkit.io/triptych/poop/branches/master"
Insert cell
poopData = {
const response = await fetch(url);
return {
ok: response.ok,
body: await response.text()
};
}
Insert cell
url = `https://cors-anywhere.herokuapp.com/${poop_url}`
Insert cell
html`The response is ${poopData.body}`
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more