Skip to content

Commit 8252f71

Browse files
authored
Merge pull request #4244 from yougetduhpicture/patch-1
Part 9B: Clarification to command line argument indexing
2 parents 69e6b44 + 689c90f commit 8252f71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/content/9/en/part9b.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,8 @@ The reason for this is, that *Number('lol')* returns *NaN*, which is actually of
377377

378378
To prevent this kind of behavior, we have to validate the data given to us from the command line.
379379

380+
(Note that command line arguments start from process.argv[2], as index 0 is the Node binary path and index 1 is the script path.)
381+
380382
The improved version of the multiplicator looks like this:
381383

382384
```js

0 commit comments

Comments
 (0)