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