Performs simple calculations as well as advanced ones as exponent, rooting, nth rooting, factorization, calculation a logarithm.
⚠ Warning! This app works stable with Google Chrome only.
- Clone this repo to your local machine
git clone https://github.com/ClarityOfMind/lecture_09.git
- Start up local static server
npm run start
- Clone this repo to your local machine
git clone https://github.com/ClarityOfMind/lecture_09.git
-
Go to the project's root directory
-
Run
docker-compose up
- Open your browser on
"localhost:8080"
to observe the app.
- Decorator
src/js/index.js // line 5,6
- Memoization
src/js/calculator/core/calculations.js // line 34
- Composite
src/js/calculator/calculator.js // line 12
- Observer
src/js/calculator/calculator.js // line 11
- Class
To reach module approach and make apllication's expansion fast and easy.
- Const
To ensure immutability of data assigned to variables.
- Let
To limit variables' scope.
- Arrow function
Use as a callback function to make parent's function context available.
- Destructuring assignment
syntactic sugar for quick writing and neat code style,
- Fork it (https://github.com/yourname/yourproject/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
Dmitry Vasilev