Kanjani ukulungisa Node JS “SyntaxError: yokungenisa Okungalindelekile ithokheni” uma usebenzisa i-JavaScript amamojuli

Ukuze engeyokuqala yokuthekelisa amamojuli une ukwabela umsebenzi ngamunye, into noma variable, okudinga ukuthi bathunyelwe, njengoba izindawo modules.exports uphikisana.   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

Funda Kabanzi