Instructions
-
Run the code npm install to install the required packages.
-
type live-server in node command window to run the index.html in the browser
-
Click on Console.
-
computeCost('customerType:date1,date2,......,daten');
-
Output will be display in console.
How to run test cases
-
After Installing packages using npm install
-
type npm run test in the node command window to run the test cases.