JSFiddle - React, Tailwind, and code Playground

by joeterry

JavaScript

var a = null;

if(a === null)
    console.log("a is null");

if(a === undefined)
    console.log("a is undefined");

if(a == null && a == undefined)
    console.log("but a is loosely both!");