title: How to declare a node.js variable that i can later use in my js file?
body: <p>So I have set up a node.js file that i'm calling "app.js". It looks like this: </p>
  
  <pre><code>const fs = require('fs')
  var myInfo = fs.readFileSync('info.txt', 'utf8')
  </code></pre>
  
  <p>I have stored the content of 'info.txt' in the variable "myInfo". I want to display that content in an html page that is named "index.html". I wonder if there is any way I could get access to the variable "myInfo" from my javascript file, that I call "script.js" (which is linked to the html of course). </p>
  
  <p>All of these files: "index.html","script.js","app.js","info.txt"</p>
  
  <p>are stored in the same folder, which I call "node-test"</p>