title: JavaScript and Constants
body: <p>What do  you guys think about making constants in Javascript. I want to do it in the best possible way. 
  I know that constants do not really exist but I wrote this and I was not able to change the values after the export. </p>
  
  <p>Is there a need for constants?</p>
  
  <p>Is there a work around?</p>
  
  <p>How can we use them global (without require('const')); ?</p>
  
  <pre><code>// Const
  var constants = {
      'PATH1' : __dirname + '/path..../',
      'PATH2' : __dirname + '/path/..../'
  };
  module.exports = function(key) {
      return constants[key];
  };
  //console.log(constants('PATH1'));
  </code></pre>
  
  <p>Would be glad if I get some feedback, like your thoughts about these questions. </p>
  
  <p>I wish you a good day.</p>