Published
Edited
Sep 9, 2020
11 stars
Insert cell
Insert cell
Insert cell
{
let a = null;
let b = false;
return a ?? b; // a == null ? b : a
}
Insert cell
Insert cell
{
let a = {b: {d: 2}};
return a.b?.c; // a.b == null ? undefined : a.b.c
}
Insert cell
Insert cell
{
let a = 0;
let b = false;
a ||= b; // a = a || b;
return a;
}
Insert cell
{
let a = 1;
let b = false;
a &&= b; // a = a && b;
return a;
}
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