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

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

Nyeem ntxiv