Last active
June 16, 2016 16:35
-
-
Save chrisl8888/af1144bdf8ff1e7720504d9e44ef6e29 to your computer and use it in GitHub Desktop.
ES 2015 constants - overriding constants inside another function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('outside', test); | |
(() => { | |
const test = 2; | |
console.log('inside', test); | |
return test | |
})(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment