Public
Edited
Jun 7, 2023
Insert cell
Insert cell
burrito = ["chicken", 4.2, false, "avocado", 11.99, "beans"]
Insert cell
burrito[3]
Insert cell
burrito.length
Insert cell
burrito.indexOf(false)
Insert cell
burrito.indexOf("beans")
Insert cell
droids = [
{name: "C-3PO", color: "gold", height: 167},
{name: "R2D2", color: "white/blue", height: 96},
{name: "BB-8", color: "white/orange", height: 26.4}
]
Insert cell
droids[0].color
Insert cell
droids[2]["color"]
Insert cell
droids.length
Insert cell
droids[2].color
Insert cell
droids.map(d => d.height / 100)
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

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