JSFiddle - React, Tailwind, and code Playground

JavaScript

function test() {
    var a = 0;
    var b = 1
    return function() {
        debugger;
        console.log(b);    
    }
    
}
test()();