Published
Edited
May 18, 2019
Insert cell
Insert cell
Insert cell
Insert cell
{
let i = 1;
return [i++, i, i--, i];
}
Insert cell
Insert cell
{
let i = 1;
return [++i, --i, i];
}
Insert cell
Insert cell
1++;
Insert cell
Insert cell
{let x = [];
for (let i = 0; i < 10; i++) { // notice the three expressions inside the () when invokinf for
x.push(i); // .push is a javascript operator on arrays that adds a value at the end of the array.
};
return x
}
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