JSFiddle - React, Tailwind, and code Playground

JavaScript

if (true) {
    foo();
    function foo() {
        console.log('bar');
    }
}