Yadda za a gyara da kumburi JS “SyntaxError: M alama shigo da” lokacin amfani da JavaScript kayayyaki

Domin ga kumburi don fitarwa kayayyaki kana da sanya kowane aiki, abu ko m, cewa bukatar da za a fitar dashi, kamar yadda kaddarorin da modules.exports ƙi.   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

Kara karantawa