Public
Edited
Apr 25, 2023
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Math.sqrt(2)
Insert cell
Insert cell
{
let xs = [1,2,3,4]
return xs.map(x => x*x)
}
Insert cell
Insert cell
function isEven(n) {
return n % 2 == 0;
}
Insert cell
Insert cell
square = x => x*x
Insert cell
range = (mn, mx) => [...Array(mx + 1 - mn).keys()].map((x) => x + mn)
Insert cell
Insert cell
intersperse = (xs, y) => xs.reduce((acc, v) => [...acc, v, y], []).slice(0, -1)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
viewof maxVal = html`<input type=range />`
Insert cell
Insert cell
Insert cell
viewof maxVal2 = Inputs.range([1, 64], { step: 1 })
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
dog = (await fetch(`https://dog.ceo/api/breeds/image/random`)).json()
Insert cell
Insert cell
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