Skip to content

Method name of .toUpperCase #1220

@paroche

Description

@paroche

In the Data Types chapter, in the first section "Methods of primitives", it is written:

"For instance, there exists a method str.toUpperCase() that returns a capitalized string."

I would think the method name should just be ".toUpperCase()" without "str" (or else "String.prototype.toUpperCase()"). Or there's something I don't understand.

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