Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ If `n` is not a positive integer, stop the program from being executed further a
In JavaScript, this can be done using the `throw` statement.

```javascript
throw new Error('Only positive numbers are allowed');
throw new Error('Only positive integers are allowed');
```