Skip to content

Instantly share code, notes, and snippets.

@rishisidhu
Created April 27, 2020 14:01
Show Gist options
  • Save rishisidhu/a493864634e40bfd64d0f7cd2bd1db23 to your computer and use it in GitHub Desktop.
Save rishisidhu/a493864634e40bfd64d0f7cd2bd1db23 to your computer and use it in GitHub Desktop.
Javascript code to display the scope of const statement
function constExample() {
const k = 1;
k = 2;
}
function go() {
constExample();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment