JSFiddle - React, Tailwind, and code Playground

JavaScript

a = 10; //global variable
var b = 20; //Global variable? but definetly in global scope!!

function x() {
    a = 20;
}

alert(window.a); //alerts 10
alert(window.b); //alerts undefined, so b is definetly in global scope, but not necessarily a global variable!