JSFiddle - React, Tailwind, and code Playground

by Brodingo

HTML

<div id="box"></div>

CSS

#box {
    width: 100px;
    height: 100px;
}

JavaScript

var a=b=2,
    c=3,
    d=4,
    e,
    $box = $('#box');
    
$box.html(a + " " + b + " " + c + " " + d + " " + typeof e);

if(typeof e == 'undefined'){
   $box.css("background-color","gainsboro");
} else {
   $box.css("background-color", "violet");
}