Skip to content

Commit

Permalink
fix : typos (#37202)
Browse files Browse the repository at this point in the history
  • Loading branch information
jolka-ef authored Dec 13, 2024
1 parent f73cfea commit 560ca6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/en-us/web/javascript/reference/trailing_commas/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ JavaScript allows trailing commas wherever a comma-separated list of values is a

In all these cases, the trailing comma is entirely optional and doesn't change the program's semantics in any way.

It is particular useful when adding, removing, or reordering items in a list that spans multiple lines, because it reduces the number of lines that need to be changed, which helps with both editing and reviewing the diff.
It is particularly useful when adding, removing, or reordering items in a list that spans multiple lines, because it reduces the number of lines that need to be changed, which helps with both editing and reviewing the diff.

```diff
[
Expand All @@ -45,7 +45,7 @@ It is particular useful when adding, removing, or reordering items in a list tha

#### Arrays

JavaScript ignores trailing commas in arrays literals:
JavaScript ignores trailing commas in array literals:

```js-nolint
const arr = [
Expand Down

0 comments on commit 560ca6e

Please sign in to comment.