Published
Edited
Dec 22, 2021
1 star
Insert cell
Insert cell
Insert cell
response = fetch("https://jservice.io/api/random").then((response)=>response.json())
Insert cell
html`<div>
<div>Category: ${response[0].category.title}</div>
<div>Question: ${response[0].question}</div>
<div><details>
<summary>Answer:</summary>
${response[0].answer}
</details>
</div>


</div>`
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