Public
Edited
Dec 20, 2022
Insert cell
Insert cell
a = Array.from({ length: 10 }).map((_, i) => ({
id: crypto.randomUUID(),
order: i
}))
Insert cell
Insert cell
newOrder = (a[3].order + a[4].order) / 2
Insert cell
Insert cell
{
let lower = 1;
let upper = 2;
let midpoint = null;

for (let i = 0; i < 52; ++i) {
midpoint = (upper + lower) / 2;
upper = midpoint;
}

const afterFiftyTwo = upper;

midpoint = (upper + lower) / 2;
upper = midpoint;

const afterFiftyThree = upper;

return [afterFiftyTwo, afterFiftyThree];
}
Insert cell
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