const a = 2; const b = 3; const getA = () => { return a; } const getB = () => { return b; } module.exports = { getA }; // pentru oricine va importa acest modul, singurul lucru la care va avea acces va fi functia "getA"