Y
Hacker News
new
|
ask
|
show
|
jobs
by
singularity2001
2949 days ago
JS does
1 comments
jscissr
2949 days ago
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/...
link
jscissr
2949 days ago
Ok, I forgot Symbol, so you were correct.
link
[1]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/...