Public
Edited
Jun 2, 2022
1 star
Insert cell
Insert cell
Insert cell
function factorial(n) {
if (n == 0) return 1;
return n * factorial(n - 1);
}
Insert cell
factorial(15)
Insert cell
Insert cell
Insert cell
function counter(n) {
if (n == 1) return 1;
return `${counter(n - 1)} ${n}`;
}
Insert cell
counter(15)
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