Me pēhea te ki te whakatika i te Kōpuku JS “SyntaxError: kawemai tohu ohorere” ka whakamahi i ngā kōwae JavaScript

I roto i te tikanga mō te kōpuku ki kōwae kaweake whai koe ki te tautapa i ia mahi, ahanoa tāupe ranei, e titau ki kia kaweake, rite ngā āhuatanga o te modules.exports whakahe.   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

Pānuitia atu