An event emitter provides a mechanism for emitting and listening to custom events in a Node.js application. Event emitters are at the core of event-driven programming in Node.js, enabling you to build applications that respond to events asynchronously.
In this challenge, we have incomplete operations for the calculator. Your task is to complete the missing operations of the calculator, such as subtraction
, multiplication
, division
, and exponential
.
- Support
subtraction
,multiplication
,division
, andexponential
operators oncalculator.js
module. - Write unit tests for each operators on
calculator.spec.js
and unit tests for combinations of operators. - Run
npm test
to check your unit tests
- Fork this repository
- Clone forked repository
- Create a new branch:
git checkout -b solution
- Install dependencies:
npm install
- Create a folder of your nickname:
mkdir nickname
- Copy files from the
challenge
directory to your own folder - Complete the objectives
- Commit and push your changes
- Create a Pull Request to original repository