JSFiddle - React, Tailwind, and code Playground

JavaScript

function a(){
    var x = "hello";
    b.apply(this, []);
}

function b(){
    //a.apply(this,[]);
    console.log("x: ", x);
}

a();