How to fix the Node JSSyntaxError: Unexpected token importwhen using JavaScript modules

Ni ibere fun ipade to okeere modulu ti o ni lati fi kọọkan iṣẹ, 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

Ka Siwaju