Platform
Resources
Pricing
Sign in
Get started
Michiel Dral
I don't actually know how to program I just ask @FransAris
Workspace
Fork
Published
By
Michiel Dral
Edited
Jun 29, 2020
Insert cell
Insert cell
viewof
x
=
html
`<input type='range'>`
Insert cell
y
=
{
await
Promises
.
delay
(
1000
)
;
console
.
log
(
x
)
;
return
x
*
x
;
}
Insert cell
z
=
{
let
x
=
Generators
.
input
(
viewof
x
)
let
last_number
=
null
for
await
(
let
number
of
x
)
{
yield
{
status
:
'pending'
,
number
:
last_number
}
await
Promises
.
delay
(
500
)
last_number
=
number
;
yield
{
status
:
'finished'
,
number
:
number
}
}
}
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
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
x
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
y
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
z
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML