- RUN
npm install
- RUN
npm start
- Node app is now running on port 3000
-
first question:
- path: http://localhost:3000/api/countNumbers/
- method: get
- body: { start: 1, end: 9 }
-
second question:
- path: http://localhost:3000/api/alphabetIndex/
- method: get
- body: { text: "BFG" }
-
third question:
- path: http://localhost:3000/api/fewSteps/
- method: get
- body: { arr: [3, 4, 720, 625, 10000] }
I have added some test cases to test different scenarios using MOCHA
- RUN
npm test