JSFiddle - React, Tailwind, and code Playground

by Steve Ayers

JavaScript

function hoist () {
    alert(myVar);
    //myVar += 1;
    
    var myVar = 1;
}

hoist();