JSFiddle - React, Tailwind, and code Playground by Venkatesh Dematti February 01, 2019 JavaScript var x = 10; function q(){ console.log(x); var x = 20; } q();