title: How can I obtain Symbol names (literals)?
body: <p>Following situation:</p>
  <pre><code>var myVehicle = { brand: 'Tesla' };
  
  var isMoving = Symbol();
  var currentStatus = Symbol();
  
  myVehicle[isMoving] = true;
  myVehicle[currentStatus] = 'moving';
  </code></pre>
  <p>I want to print the names of used &quot;Symbol-properties&quot; in my object <code>myVehicle</code></p>
  <pre><code>console.log(
      myVehicle[isMoving],  // true
      myVehicle[currentStatus],  // 'moving',
      Reflect.ownKeys(myVehicle),  // [ 'brand', Symbol(), Symbol() ]
      Object.getOwnPropertySymbols(myVehicle), // [ Symbol(), Symbol() ]
  );
  </code></pre>
  <p>How can I get the names like:</p>
  <p><code>[isMoving, currentStatus]</code> instead of <code>[ Symbol(), Symbol() ]</code></p>
  <p><strong>Solution</strong></p>
  <p>No names, but descriptions:</p>
  <pre class="lang-js prettyprint-override"><code>var myVehicle = { brand: 'Tesla' };
  
  var isMoving = Symbol('isMoving');
  var currentStatus = Symbol('currentStatus');
  
  myVehicle[isMoving] = true;
  myVehicle[currentStatus] = 'moving';
  
  Object.getOwnPropertySymbols(myVehicle).forEach((sym, index) =&gt;
    console.log(
      index + 1 + '. Symbol Description: ',
      sym.description + ': ',
      myVehicle[sym],
    ),
  );
  </code></pre>
  <p>Outputs:</p>
  <pre><code>1. Symbol Description:  isMoving:  true
  2. Symbol Description:  currentStatus:  moving
  </code></pre>