Skip to content

Commit

Permalink
Merge pull request #26471 from jphamtv/patch-1
Browse files Browse the repository at this point in the history
Factory Functions and the Module Pattern: Added blank line
  • Loading branch information
wise-king-sullyman authored Oct 11, 2023
2 parents 84115ce + ace1a2a commit 6003979
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ function printAge (age) {
}

printAge(globalAge);

// ERROR! We tried to access a function scoped variable
// outside the function it's defined in
console.log(varAge);
Expand Down

0 comments on commit 6003979

Please sign in to comment.