Skip to content

Issue with "Handling text — strings in JavaScript": code typo #2959

@NgocHueLy

Description

@NgocHueLy

MDN URL: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Strings

What information was incorrect, unhelpful, or incomplete?

    Conversely, every number has a method called toString() that converts it to the equivalent string. Try this:
    let myNum2 = 123;
    let myString2 = myNum2.toString();
    typeof myString; (*) <--- This is wrong, need to be myString2

Specific section or headline?

    Numbers vs. strings

What did you expect to see?

(*) typeof myString2;

Did you test this? If so, how?

MDN Content page report details

Metadata

Metadata

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