Skip to content

Commit

Permalink
fixed function name and console.log output (#5166)
Browse files Browse the repository at this point in the history
  • Loading branch information
HW1337 committed Mar 27, 2024
1 parent 54417b4 commit 4c61151
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/array-splice/index.md
Expand Up @@ -65,8 +65,8 @@ const months = ['Июнь', 'Июль', 'Сентябрь']

months.splice(2, 0, 'Август')

console.log(newMonths)
// [Июнь', 'Июль', 'Июль', Сентябрь']
console.log(months)
// ['Июнь', 'Июль', 'Август', 'Сентябрь']
```

Если при вызове указать только индекс, то все элементы, начиная с элемента с этим индексом (включая сам элемент), будут удалены.
Expand Down

0 comments on commit 4c61151

Please sign in to comment.