Published
Edited
Dec 24, 2018
13 stars
Insert cell
Insert cell
Insert cell
[0, 0, 0]
Insert cell
Insert cell
["a",, "c"]
Insert cell
Insert cell
new Array(3)
Insert cell
Insert cell
new Array(3).fill(0)
Insert cell
Insert cell
{
const array = [];
for (let i = 0; i < 3; ++i) {
array.push(0);
}
return array;
}
Insert cell
Insert cell
Array.from(new Array(3))
Insert cell
Insert cell
Array.from({length: 3})
Insert cell
Insert cell
[...new Array(3)]
Insert cell
Insert cell
Array.from({length: 3}, () => 0)
Insert cell
Array.from({length: 3}, (_, i) => i)
Insert cell
Insert cell
[...new Array(3).keys()]
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