title: How to modify variables from another file in node.js
body: <p>I'm currently working with the <code>discord.js</code> library.<br>
  I guess I can call it by this name, but whenever I want to access a file, this doesn't work. </p>
  
  <p>Let's say I have a file called <code>calc.js</code> and I want to access the <code>main.js</code> file and take a variable out of there using exports and require it to just take the value out of it.</p>
  
  <p>But I haven't found even one way online to modify the variables and return another value to the file.<br>
  Can someone help me?</p>