Closed
Bug 1370790
Opened 7 years ago
Closed 7 years ago
A property listed doesn't work
Categories
(Developer Documentation Graveyard :: General, defect, P5)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: regspam, Unassigned)
References
()
Details
:: 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
Closed: 7 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•