- Refactor gilded_rose's update function
- Use JavaScript Best Practices
- Write clean code
- Write test cases
- Tried DRY principle
Cope and Paste the following commands to your terminal
git clone git@github.com:zainsadaqat/gilded-rose-kata.git
cd gilded-rose-kata
npm install
- Use JS best practices to use const for arrays and objects instead of var
- For readability, use forEach() instead of for loop.
- Create a function to check item name
- Create a function to check item quality
- Create a function to check item sell in
- Use logical operators instead of nested if condition