Can I still use my parameters in an exported function?

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 :slight_smile:

3 Likes

Haha, oops - it does work, I meant to mark this as the solution. thanks for trying to help!

2 Likes