How to use function before initializing within module.exports
I have two functions the first is register which uses a function called emailExists and both functions are exported using // services.js module.exports = { async register(prm) { emailExists(prm) // emailExists is not defined }, async emailExists(prm) { // do something } } I have a couple of questions should I use a class that… Read More How to use function before initializing within module.exports