DEV Community

Discussion on: JavaScript Arrays vs Objects

Collapse
 
jonrandy profile image
Jon Randy 🎖️ • Edited

Object keys can be symbols as well as strings. With some magic, it is also possible to use arrays as keys to access object properties.

Collapse
 
acesif profile image
Asif Zubayer Palak

Amazing! Didn't know this was possible, thanks for sharing the article - learnt something new today!