JSFiddle - React, Tailwind, and code Playground
by Rene Kriest
JavaScript
// Inner function and access to a variable outside
function outer() {
var outer = 'Top';
//inner();
function inner() {
var inner = 'Middle';
alert(outerBottom);
}
var outerBottom = 'Bottom';
inner();
}
var a = outer();