JSFiddle - React, Tailwind, and code Playground

by nerdycap007

JavaScript

let a = () => {
  let x = 2;
  return () => {
    console.log(x)
  }
}

console.dir(a())