title: What is the difference between .js and .mjs files?
body: <p>I have started working on an existing project based on Node.js. I was just trying to understand the flow of execution, where I encountered with some <code>*.mjs</code> files. I have searched the web where I found that these are module based JS-files.</p>
  <p>I want to know how is it different from <code>*.js</code> files (how does it benefit)?</p>