title: Call private variable from variable name as string in nodejs
body: <p>i am working with NodeJS project and i would like to access a private variable from its string name, the example i show is not my project but a basic example demonstrating what i want to do.<br>
  I tried options such as <br><br>
  this.#[VariableContainingVarName] = &quot;:D&quot;<br>
  this.[#VariableContainingVarName] = &quot;:D&quot;<br><br>
  But none of theses worked, i know this is a weird request but there is no security issue with what i am doing, because i filter in a loop before trying to attribute any data to my variable.</p>
  <pre><code>class Fun {
  
    this.#accessible = &quot;:D&quot;;
  
    set coolFunc(varName)
    {   
       console.log(this.#accessible);
       this.~~HOW TO CALL IT HERE~~ = &quot;D:&quot;
       console.log(this.#accessible);
  
    }
  }
  var funny = new Fun();
  funny.coolFunc(&quot;accessible&quot;);
  </code></pre>
  <p>Expected output:<br>
  :D<br>
  D:<br><br></p>
  <p>----Update----<br>
  From what some people suggested just under, this is not a working solution, i want theses variables to be private.
  Result obtained with following
  <code>{ '#name': 'Button1', '#x': 32, '#y': 32 }</code>
  <br><br>To be more clear i have like 80 variables, they are not forcably called when the controller is being called and they are ALL private. I let the user add their variables with for example</p>
  <pre><code>new Fun({
    var1: &quot;val&quot;,
    var1: &quot;val2&quot;...
  });
  </code></pre>
  <p>Then my constructor call a function that will look for each key and their value to make sure its allowed, and automaticly attribute to the private variable the value user entered. Example of the so said function:</p>
  <pre><code>// yes it is private for a reason too
  #apply(configAttrib)
  {
          for (const [confElemKey, confElemValue] of Object.entries(configAttrib))
      {       
          switch (confElemKey) {
              case 'name':
                  if (typeof(confElemValue) !== 'string')
                      throw Error(`Setting ${confElemKey} is expected to be of type 'string'. Got type ${typeof(confElemValue)}.`);
              break;
          }
          // I want to attribute confElemValue to confElemKey here
        
      }
  }
  </code></pre>