JSFiddle - React, Tailwind, and code Playground

by Chuan Shao

JavaScript

var o = {x:1, y:2};
console.log(o && o.y);//2
console.log(null && x);//null

var a = null;
var b = 42;
var v = a || b || 100;
console.log(v);//42