array=["a",6,"6","forty"]// notice this? Anything after // is a comment, and isn't read by the program.
// This is a comment to bring your attention to the strings like "a" and "forty" // are in quotes, while the integer 6 can stand alone without quotes!
array[0]
index_of_forty=???
list=[
{first_name:"Maeve",last_name:"Kane"},
{first_name:"Patrick",last_name:"Nold"}
]
list[0].last_name
chair_first_name=??
functiongreet(another_variable){
return`Hello, ${another_variable}!`;
}
greet(yourname)
p_nold_greet=greet(??)
data=FileAttachment("1915State@1.csv").csv()
data.length
Object.keys(data[0])
d3=require("d3@6")
median=d3.median(data,d=>+d.age)
min=d3.min(data,d=>+d.age)
max=??
yourname
max
p_nold_greet
chair_first_name
index_of_forty
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.