Published
Edited
Dec 26, 2021
Insert cell
# Fibonacci
Insert cell
function fibonacci(num) {
if (num <= 2) return 1;
return fibonacci(num - 1) + fibonacci(num - 2);
}
Insert cell
fibonacci(7)
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