How to write ESx syntax in Nodejs app?
Follow through the video. Here’s a short description -
All you need to do is go to the package.json file in your node app and write:
“type”: “module”
Write this code snippet exactly as shown in the video and then you’re going to be able to use imports instead of const….require.