hat
Nan lòd pou ne modil ekspòtasyon ou gen yo asiyen chak fonksyon, objè oswa varyab, ki egzije pou yo dwe ekspòte, kòm pwopriyete modules.exports yo objè. Exporting In this example the module file is robot.js. Each function, object or variable we would like to make available to other files we make them properties…
eng
In order for node to export modules you have to assign each function, object or variable, that requires to be exported, as properties of the modules.exports object. Exporting In this example the module file is robot.js. Each function, object or variable we would like to make available to other files we make them properties…