Insert cell
Insert cell
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

// {
// while (true) {
// await Promises.delay(1700);
// if(topClass.classIndex == 0) {
// yield audio.play();
// }
// }
// }
Insert cell
Insert cell
Insert cell
// dv = {
// const div = html`<div style="transition:background 250ms linear;height:33px;">`;
// if(topClass.classIndex == 0)
// div.style.background = "red";
// if(topClass.classIndex == 1)
// div.style.background = "blue";
// if(topClass.classIndex == 2)
// div.style.background = "green";
// if(topClass.classIndex == 3)
// div.style.background = "yellow";
// if(topClass.classIndex == 4)
// div.style.background = "purple";
// return div;
// }
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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.
Learn more