Platform
Resources
Pricing
Sign in
Get started
Alex Garcia
Software engineer, available for freelance work! • he/him/his
Workspace
Fork
Published unlisted
By
Alex Garcia
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.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
rt
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
runtime
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML