Published
Edited
Nov 7, 2021
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
name = "Justin Newman"
Insert cell
Insert cell
name.startsWith("S") // does the value of the name variable begin with an "S"?
Insert cell
Insert cell
Insert cell
firstLetter = name.charAt(0) // use indexing on the name variable to get the first letter of your name
Insert cell
name2 = name.split(" ")
Insert cell
Insert cell
Insert cell
me = ({
firstName: "Justin",
lastName: "Newman"
})
Insert cell
legend = ({
firstName: "Mark",
lastName: "Twain"
})
Insert cell
car = ({
make: "Chevrolet",
model: "Volt",
"model year": "2012",
mileage: 76000,
"owner history": [me, legend],
lease: true
})
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