Skip to content

Commit

Permalink
switch shift/unshift
Browse files Browse the repository at this point in the history
  • Loading branch information
colevandersWands authored Dec 6, 2023
1 parent c80ed76 commit 256a113
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ your study time and to measure your progress:
remove items in an array:
- [ ] **arr.push()**: Adds a new item to the end of an array.
- [ ] **arr.pop()**: Removes the last item in an array.
- [ ] **arr.shift()**: Adds a new item to the front of an array.
- [ ] **arr.unshift()**: Removes the first item in an array.
- [ ] **arr.shift()**: Removes the first item in an array.
- [ ] **arr.unshift()**: Adds a new item to the front of an array.
- 🥚 **Reading Items**: You can read items in an array using:
- [ ] **arr[i]**: Access a specific item in an array using square brackets a
positive index.
Expand Down

0 comments on commit 256a113

Please sign in to comment.