nakaz / state-store

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

State Store Exercise

Alter the value on the DOM based on the state of the store.

Build your class

Export a class and its constructor.

Constructor

Counter class should have a key/value map property called store.

Reset

Counter class should have a method that can reset the store back to its original constructor state.

Increment

Counter class needs a method that can incremet a key value up.

Decrement

Counter class needs a method that can decrement a key value down.

DOM methods

Decrement

Counter class needs a method that can decrement a key value down.

Install dependencies

npm install

Run the tests

npm test

About


Languages

Language:JavaScript 74.0%Language:HTML 26.0%