Published
Edited
Aug 29, 2020
Insert cell
Insert cell
{

for(let i = 0; i < 4; i= i + 1){ console.log(heroes[i].identity)}

}
Insert cell
heroes = [
{name: "Batman", identity: "Bruce Wayne", Universe: "DC"},
{name: "Superman", identity: "Clark Kent", Universe: "DC"},
{name: "Wonder Woman", identity: "Diana Prince", Universe: "DC"},
{name: "Iron Man", identity: "Tony Stark", Universe: "Marvel"}
]
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