JSFiddle - React, Tailwind, and code Playground JavaScript var foo = 1; function bar() { if (!foo) { var foo = 10; } alert(foo); } bar();