Your task is to implement function toReadable
that converts given number, to readable string.
For example:
toReadable(1); // Will return 'one'
toReadable(997); //will return 'nine hundred ninety seven'
You can find even more examples in test.js
Write your code in `src/index.js. All test cases are designed as “error-free”, so don't worry about handling any errors.
- Install Node.js
- Fork this repository: human-readable-number
- Clone your newly created repo: https://github.com/<%your_github_username%>/human-readable-number/
- Go to folder
human-readable-number
- To install all dependencies use
npm install
- Run
npm test
in the command line - You will see the number of passing and failing tests you 100% of passing tests is equal to 100p in score
Submit to rs app
- Open rs app and login
- Go to submit task page
- Select your task (human-readable-number)
- Press the submit button and enjoy
- We recommend you to use nodejs of version 16.
- Each of your test case is limited to 30 sec.