JSFiddle - React, Tailwind, and code Playground by TheDiamondDoge July 09, 2020 JavaScript var x = 10; function foo() { if(false) { var x = 20; } } foo(); alert(x)