JSFiddle - React, Tailwind, and code Playground

JavaScript

foo();

//blah();

function foo(){
    alert('hoisted and works');
}

var blah = function(){
    alert('not hoisted, would fail if called');
}