Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

JS does


Actually no, all keys are strings in JS, and if you use something that isn't a string as a key, it is converted to a string (unless you meant Maps[1], which don't use object notation).

[1]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/...


Ok, I forgot Symbol, so you were correct.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: