A closure is a function bundled with its lexical scope.
This repo contains example code for "Learn JavaScript with Eric Elliott".
- Clone the repo:
git clone [email protected]:learn-javascript-courses/what-is-a-closure.git
cd what-is-a-closure
npm install
npm run watch
- Delete the contents of
source/index.js
- Recreate the implementation. Make the tests pass.