FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update problem.md · DynamicMetaFlow/javascripting@f96dfd1 · GitHub

Commit f96dfd1

Browse files
committed
Update problem.md
n.toString() does nothing unless it is assigned to a variable or passed as an argument. The example could be slightly misleading for beginners who don't understand the concept of return values yet.
1 parent a0d36ef commit f96dfd1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎problems/number-to-string/problem.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ In those instances you will use the `.toString()` method. Here's an example:
88

99
```js
1010
var n = 256;
11-
n.toString();
11+
n = n.toString();
1212
```
1313

1414
## The challenge

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL