Monday 29 July 2019

Access module constants

New to Nodejs here. How do you access a modules constants? Or is that bad practice?Example:car.jsconst engine = 'v8' const buildCar = (params) => { ... } module.exports = buildCar How would I access the `engine` constant?

Submitted July 29, 2019 at 05:50PM by bmo333

No comments:

Post a Comment