DEV Community

Discussion on: Built in data structures in Javascript

Collapse
 
andrerpena profile image
André Pena

Object keys can also be number and Symbol

Collapse
 
kartik2406 profile image
Kartik Malik

Yes you are right they can be Symbol :) not numbers though, numbers are cast to strings so at the end they are strings :)

Collapse
 
andrerpena profile image
André Pena

Ah you are right.
=). Great article, BTW!