I have a function like
function getHex(color) {}
I exported it like
module.exports = {getHex}
When I import this function into another file, can I still use it like getHex(“8adaff”)?
I have a function like
function getHex(color) {}
I exported it like
module.exports = {getHex}
When I import this function into another file, can I still use it like getHex(“8adaff”)?
Trying it can’t hurt
Haha, oops - it does work, I meant to mark this as the solution. thanks for trying to help!