Instructions


  1. Run the code npm install to install the required packages.

  2. type live-server in node command window to run the index.html in the browser

  3. Click on Console.

  4. computeCost('customerType:date1,date2,......,daten');

  5. Output will be display in console.


How to run test cases


  1. After Installing packages using npm install

  2. type npm run test in the node command window to run the test cases.