This repo contains the Coordinate
class which overrides the +
operator to return the addition of x
and y
coordinates.
This also has the React UI for the same functionaly.
Clone this and run npm install
.
To run the test cases run npm run test
To check the lint you can run npm run lint
Please use src/coordinate/Coordinate.js
class to create new Coordinates and use +
operator.
To start the app on localhost run npm run start
Play around with the app to add the coordinate objects.