Present in both answers;Present only in the new answer;Present only in the old answer;
Save the file with ES6 modules with .mjs extension and run it like: node --experimental-modules my-app.mjs
Save the file with ES6 modules with .mjs extension and run it like: node --experimental-modules my-app.mjs This question has been answered [here][1]. [1]: https://stackoverflow.com/questions/45854169/how-can-i-use-an-es6-import-in-node
Present in both answers;Present only in the new answer;Present only in the old answer;