This is a workshop intended to make you think about prototypes and inheritance! We will be constructing two methods that allow us to both create classes, and to create and extend a class immediately. While there are fancy new ways in ESNext to make this easier, you should also test your knowledge by trying to do this using pre-ES2015 functionality.
npm install
npm run test:watch
- Read the source code in
src/index.js
. Read the test code intest/index.test.js
, write the body of thecreateClass
and theextendClass
functions. Changexit
toit
to have the test run. Work until all tests are passing!