Public
Edited
Dec 12, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
burrito = ["chicken", 4.2, false, "avocado", 11.99, "beans"]
Insert cell
Insert cell
// Access the fourth element in burrito:
burrito[3]
Insert cell
Insert cell
// Find the length of the burrito array:
burrito.length
Insert cell
Insert cell
// Find the index (position) of the value 4.2 in burrito:
burrito.indexOf(4.2)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// Find the length of the droids array:
droids.length
Insert cell
Insert cell
// Find the value of "height" for the third element in droids (BB-8's height):
droids[2].height
Insert cell
Insert cell
// Find the keys of the first element in the droids array:
Object.keys(droids[1])
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// Create and customize a scatterplot of Consumption (HCF) and Current Charges from the nyc_water data:

Insert cell
Insert cell
import { showMe } from "@observablehq/show-me"
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