Published unlisted
Edited
Mar 26, 2021
Insert cell
Insert cell
rt = require("@observablehq/runtime")
Insert cell
runtime = new rt.Runtime()
Insert cell
{
const main = runtime.module();
main.variable().define("a", 1);
main.variable().define("b", 2);
main.variable().define("c", ["a", "b"], (a, b) => a + b);
return Array.from(main._scope.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