Published
Edited
Nov 29, 2021
Insert cell
Insert cell
data = [3,6,4,8,4,9,6]
Insert cell
data.sort((a,b) => b - a)
Insert cell
data2 = [
{weight:200,height:70},
{weight:210,height:68},
{weight:190,height:72}
]
Insert cell
data2.sort((a,b) => b.height - a.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