:: Developer Documentation Request Request Type: Correction Gecko Version: unspecified Technical Contact: :: Details Among the properties of String instances there's "N": "N Used to access the character in the Nth position where N is a positive integer between 0 and one less than the value of length. These properties are read-only." However it doesn't seem to work, for example var str = "abcd"; console.log(str.2); yields an error.
Sorry, I forgot you to need to use the [property], not .property access notation if the property name starts with a number.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 9 months ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.