Skip to content

Commit

Permalink
Update files/en-us/web/javascript/reference/errors/unexpected_token/i…
Browse files Browse the repository at this point in the history
…ndex.md
  • Loading branch information
OnkarRuikar committed Sep 23, 2024
1 parent d461a8a commit 4831189
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Sometimes, you leave out parentheses around `if` statements:

```js-nolint example-bad
function round(n, upperBound, lowerBound) {
if (n > upperBound) || (n < lowerBound) { // Not enough parenthesis here!
if (n > upperBound) || (n < lowerBound) { // Missing a parenthesis here!
throw new Error(`Number ${n} is more than ${upperBound} or less than ${lowerBound}`);
} else if (n < (upperBound + lowerBound) / 2) {
return lowerBound;
Expand Down

0 comments on commit 4831189

Please sign in to comment.