Testing "Refactoring: A First Example" from "Refactoring: Improving the Design of Existing Code" book
This is my first exercise with refactoring that I am following along with the book.
Your function statement
should be able to print the bill.
- JavaScript
- Node.js
These instructions will get you a copy of the code challenge solution and run it on your local machine for development and testing purposes.
Link to software that is required before you attempt to start the app (e.g. node, mongo).
Steps to test the solution.
- Download this project.
- In terminal, navigate to your project folder and type
node statement.js
- You should see that Node.js has ran the
statement.js
file and will display the console log scripts.
- Set up json files and imported data into the needed variables for the function.
- Created local objects instead of using npm file-system package.
- Start the refactoring process and document learning steps.
- Jarvis Yang
- Refactoring: Improving the Design of Existing Code (Web Edition)