title: update the imported variable in nodejs
body: <p>I have a module that imports a variable from another one.
  there is a function in moduleA (the imported module) that updates its variable
  I want to update it in moduleB too.</p>
  <pre><code>// moduleA
  
  export let something=0
  export let onclick=()=&gt;{ something=1 }
  </code></pre>
  <pre><code>// moduleB
  let something = require('./moduleA');
  console.log(something): //0
  
  </code></pre>
  <p>now, when I run <code>onClick()</code> somehow, I want the variable value <code>something</code> to be updated</p>
  <p>for illustration, I use 'moduleA' to create a view in moduleB in an Angular project, in real life, <code>something</code> is an array of elements, one of them is a clickable button that modifies the array.
  and I want to update it in the component (i.e: moduleB)</p>
  <p>so, <code>this.something = require('./moduleA);</code> binding updated</p>