When using Object.keys() on an object with Symbol keys, these keys will __________ be included in the returned array.

  • always
  • sometimes
  • never
  • based on Object type
When using Object.keys() on an object with Symbol keys, the Symbol keys will never be included in the returned array. This is because Symbol-keyed properties are not enumerable and are ignored by Object.keys().
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *