title: What is the JavaScript equivalent for Swift ?? operator
body: <p>In swift, <code>x = y ?? z</code> means that x equals y, unless y is null/nil, in which case, x equals z. What is the JavaScript equivalent?</p>