Published
Edited
Feb 16, 2022
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
{
while (true) {
yield Promises.tick(1000, showTime()); //wait 1000 msec then run showTime
}
}
Insert cell
mutable time = 0
Insert cell
output = html`<div class="output">${time}</div>`

Insert cell
function showTime(){
mutable time = new Date()
}
Insert cell
<style>
.output{
background: #000;
color: tan;
padding: 4px;
font-size: 2em;
font-family: sans-serif;
}
</style>
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