The task is to implement two functions first should convert Celcius degrees to Fahrenheit, second should do the opposite.
cToF
for converting Celcius to Fahrenheit
fToC
for converting Fahrenheit to Celcius
For example:
cToF(84) // 183.20
cToF(47) // 8.33
Please note, that all calculations should be done with two decimal places.
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: temperature-converter
- Clone your newly created repo: https://github.com/<%your_github_username%>/temperature-converter/
- Go to folder
temperature-converter
- 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 (towel-sort)
- Press the submit button and enjoy, results will be available in few minutes
- We recommend you to use nodejs of version 12 or lower. If you using are any of the features which are not supported by v12, the score won't be submitted.
- Each of your test case is limited to 30 sec.