JSFiddle - React, Tailwind, and code Playground

JavaScript

var foo = 1;
console.log("test");

function bar() {
    if (false) {
        var foo = 10;
    }
    alert("The values is " + foo);
}

bar();