Skip to content

charAt() to Bracket notation #7

Description

@itozyun

IE 9<, Gecko, Opera

MDN / Property accessors / Bracket notation

MDN / String.prototype.charAt() / Description

  • charAt() attempts to convert index to an integer, while bracket notation does not, and directly uses index as a property name.
  • charAt() returns an empty string if index is out of range, while bracket notation returns undefined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions