In the web and graphics design the developers and designer can use a lot of different color system to produce beatiful and functional mockup.
Your task is to implement the convertColor
function that covert color from one system to another.
For example:e
// education time config
const result = convertColor('#000000', 'rgb)
console.log('result: ', result); // 'result: rgb(0,0,0)'
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
- Clone this repository:
git clone https://github.com/SIARHEI-SMANTSAR/love-triangle.git
- Go to folder
convert-colors
- Run
npm install
in command line - Run
npm test
in command line - You will see the number of passing and failing tests