Skip to content

Instantly share code, notes, and snippets.

@kermit-klein
Created July 20, 2020 20:39
Show Gist options
  • Save kermit-klein/5263826e31f0287c6ed7d542f1f6ee06 to your computer and use it in GitHub Desktop.
Save kermit-klein/5263826e31f0287c6ed7d542f1f6ee06 to your computer and use it in GitHub Desktop.
closure_example_1
const outer = () => {
let outerData = "This is outer";
return () => {
let innerData = " and this is inner";
return outerData + innerData;
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment