Skip to content

Commit afe292b

Browse files
"Can" instead of "Can't"
I think that's what the author meant.
1 parent dc904d1 commit afe292b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/05-data-types/02-number/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ But in real life we often have values in units, like `"100px"` or `"12pt"` in CS
349349

350350
That's what `parseInt` and `parseFloat` are for.
351351

352-
They "read" a number from a string until they can. In case of an error, the gathered number is returned. The function `parseInt` returns an integer, whilst `parseFloat` will return a floating-point number:
352+
They "read" a number from a string until they can't. In case of an error, the gathered number is returned. The function `parseInt` returns an integer, whilst `parseFloat` will return a floating-point number:
353353

354354
```js run
355355
alert( parseInt('100px') ); // 100

0 commit comments

Comments
 (0)