So if I declared a variable using
const outside of a block where can I access it?
You’d be able to access your variable anywhere else below where you declared it so long as you don’t leave outside the scope you’re in. What that means is if you have blocks inside the current block of your variable, that’s fine. You variable is still accessible. But, say your variable is declared inside of a block, it can still be accessed in that block and blocks within your block, but wouldn’t be accessible outside of the block it’s defined. Example: