JSFiddle - React, Tailwind, and code Playground

by Qwerty_Wasd

JavaScript

function f(shouldInitialize) {
    if (shouldInitialize) {
        let x = 10;
    }
 
    return x;
}
 
console.log(f(true));