Platform
Resources
Pricing
Sign in
Get started
Sean Kelley
Workspace
Fork
Published
By
Sean Kelley
Edited
Aug 19, 2020
1 star
Insert cell
Insert cell
viewof
toggle
=
html
`<button>ON</button>`
Insert cell
mutable
on
=
true
Insert cell
{
if
(
on
)
{
viewof
toggle
.
innerHTML
=
"OFF"
}
else
{
viewof
toggle
.
innerHTML
=
"ON"
}
}
Insert cell
{
toggle
;
mutable
on
=
!
mutable
on
;
}
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
toggle
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
on
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML