JSFiddle - React, Tailwind, and code Playground

JavaScript

var undefined = 2;

function test(){
  var x;
    
    alert("1: " + (typeof x == "undefined"));
    alert("2: " + ( x  === undefined)); 
    
}

test();