© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Ridwan Olanrewaju
React Developer
Excellent article. I should mention though, that an Object can have a number as a property key.
number
For Example:
const x = { 7: "tight" } // undefined x[7] // 'tight'
Fecharalua
If the key is of type Number, it will be converted to a String. So the value of x['7'] is also 'tight'.
Divine Orji
Software Engineer
Fecharalua's correct. JavaScript will convert an Object's key to a string.