JSFiddle - React, Tailwind, and code Playground
by Erik Woods
HTML
<div>Test 1: zA === <span id="test1"></span></div>
<div>Test 2: zB === <span id="test2"></span></div>
JavaScript
var xA = 50;
var yA = 100;
var zA = xA || yA;
$('#test1').html(zA);
var xB;
var yB = 100;
var zB = xB || yB;
$('#test2').html(zB);