Skip to content

Instantly share code, notes, and snippets.

@ar5had
Created May 12, 2017 15:40
Show Gist options
  • Select an option

  • Save ar5had/9bf574244f465382bf8ab58ca627d0f1 to your computer and use it in GitHub Desktop.

Select an option

Save ar5had/9bf574244f465382bf8ab58ca627d0f1 to your computer and use it in GitHub Desktop.

Revisions

  1. ar5had created this gist May 12, 2017.
    5 changes: 5 additions & 0 deletions blockscope-vars-in-es5.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    try {
    throw 1;
    } catch (myfancyvariable) {
    console.log('This variable is only availabe within this catch block =>', myfancyvariable);
    }