Published
Edited
Jun 9, 2020
Insert cell
Insert cell
Insert cell
async function getPerson(id) {
let response = await fetch(`https://swapi.dev/api/people/${id}/`)
let data = await response.json()
return data;
}
Insert cell
getPerson(1).then(data => data);
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