JSFiddle - React, Tailwind, and code Playground JavaScript (function() { var var1 = 1; var var2 = 2; })(); console.log(var1); // error