Published
Edited
Nov 29, 2021
Insert cell
Insert cell
data = [2,6,4,3,7,5,9]
Insert cell
data.sort((a,b)=> a-b)
Insert cell
data2 = [
{weight:200,height:70},
{weight:190,height:72},
{weight:230,height:71}
]
Insert cell
data2.sort((a,b) => a.height - b.height)
Insert cell
f = (x) => {return x*x}
Insert cell
f(2)
Insert cell
f(3)
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