# js-train **Repository Path**: bravemaster619/js-train ## Basic Information - **Project Name**: js-train - **Description**: Javascript train for beginners - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-12-15 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Installation 1. Clone this repository: ```console git clone https://gitee.com/bravemaster619/js-train.git ``` 2. Install dependencies: ```console npm install ``` 3. Put your source code into js files in `src` directory 4. Run mocha test ```console npm run test ``` If all tests are passed, you will see the following message: ``` dateDiff ✓ calculates date difference and format to Korean language removeHiddenKey Failed to parse JSON Failed to parse JSON ✓ parses JSON string and remove hidden key from it strBetween ✓ gets substring between two words inclusively, search is case-insensitive getAverageGradeOlderThan ✓ gets average grade of students who were born before given year countDowBetween ✓ count occurence of day of weeks given in Korean language between two dates dateRange ✓ groups property calendar dates by availability, price and minimum stay teamBattle ✓ simulates team battle and returns winner and units alive 7 passing (19ms) ``` 5. Fix bugs and refactor your code until all tests are passed