Skip to content

Possible typo at #21.3 #523

@DannyNemer

Description

@DannyNemer

At item 21.3, the guide reads:

Use parseInt for Numbers and always with a radix for type casting.

However, the example displays:

// good
const val = Number(inputValue);

// good
const val = parseInt(inputValue, 10);

Question: Is the first of the above examples supposed to be // bad (not // good), or should the guide read "Use parseInt or Number for Numbers..."?

Thank you.

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