- MOVE ALL FUNCTIONS and array from
index.js
into separate files in foldersutils
anddata
- split it by comments above functions- function for converting color in hex format -> move into
utils/colors.js
- move math functions into
utils/math.js
- same for another types of functions
- function for converting color in hex format -> move into
- You should have only one implementation of every function. If you need specific function in different file, use export/import
- You should have same result as
test.js
npm test
should have same ouput asnpm start