title: How to declare and use map/dictionary in Node.js?
body: <p>is it possible something like this is node.js ?</p>
  
  <pre><code>var LANGUAGE = {
      LANG1: 'Language 1',
      LANG2 'Language 2'
  }
  
  var TARGET = {
      TARG1: { LANG1: 'target 1 in lang 1', LANG2: 'target 1 in lang 2' },
      TARG2: { LANG1: 'target 2 in lang 1', LANG2: 'target 2 in lang 2' }
  }
  
  var ACTION = {
      ACT1: { LANG1: 'action 1 in lang 1', LANG2: 'action 1 in lang 2' },
      ACT2: { LANG1: 'action 2 in lang 1', LANG2: 'action 2 in lang 2' }  
  }
  
  
  var currentLanguage = LANGUAGE.LANG1;
  var currentTarget = TARGET.TARG2;
  var currentAction = ACTION.ACT1;
  
  var message = 'You have successfully performed ' + currentAction[currentLanguage] + ' on ' + currentTarget[currentLanguage];
  
  console.log(message);
  </code></pre>
  
  <p>I'm not sure that in the source above there is any relation between <strong>LANGUAGE.LANG1</strong> and <strong>TARG1: { LANG1</strong>:   etc...</p>
  
  <p><strong>======== updated with the result after running this in VSCode =======</strong></p>
  
  <pre><code>You have successfully performed undefined on undefined
  </code></pre>