Skip to content

Possible typo at #21.3 #523

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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