Platform
Resources
Pricing
Sign in
Get started
Robin Houston
Workspace
Fork
Published
By
Robin Houston
Edited
Jun 28, 2017
Insert cell
Insert cell
counter
=
*
{
yield
0
;
while
(
true
)
yield
new
Promise
(
function
(
resolve
,
reject
)
{
global
.
setCounter
=
resolve
;
}
)
;
}
Insert cell
Insert cell
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
global
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
twice_counter
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
button
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML