diff --git a/files/en-us/learn/javascript/first_steps/strings/index.html b/files/en-us/learn/javascript/first_steps/strings/index.html index 1bf0a0373588f18..6d2d1565c16cd84 100644 --- a/files/en-us/learn/javascript/first_steps/strings/index.html +++ b/files/en-us/learn/javascript/first_steps/strings/index.html @@ -153,7 +153,7 @@

Numbers vs. strings

  • 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;
    +typeof myString2;
  • These constructs can be really useful in some situations. For example, if a user enters a number into a form's text field, it's a string. However, if you want to add this number to something, you'll need it to be a number, so you could pass it through Number() to handle this. We did exactly this in our Number Guessing Game, in line 54.