Skip to content

Commit b4d34df

Browse files
authored
Merge branch 'master' into patch-1
2 parents d479da5 + 10c20a3 commit b4d34df

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

content/snippets/js/s/data-structures-queue.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ class Queue {
3535
this.items.push(item);
3636
}
3737

38-
dequeue(item) {
38+
dequeue() {
3939
return this.items.shift();
4040
}
4141

42-
peek(item) {
42+
peek() {
4343
return this.items[0];
4444
}
4545

@@ -50,7 +50,7 @@ class Queue {
5050
```
5151

5252
- Create a `class` with a `constructor` that initializes an empty array, `items`, for each instance.
53-
- Define an `enqueue()` method, which uses `Array.prototype.push()` to add an element to the end of the `items` array.
53+
- Define an `enqueue()` method, which uses `Array.prototype.push()` to add an element, `item`, to the end of the `items` array.
5454
- Define a `dequeue()` method, which uses `Array.prototype.shift()` to remove an element from the start of the `items` array.
5555
- Define a `peek()` method, which retrieves the value of the first element in the `items` array, without removing it.
5656
- Define an `isEmpty()` method, which uses `Array.prototype.length` to determine if the `items` array is empty.

src/components/Footer.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const currentYear = new Date().getFullYear();
1919
<p class='fs-xs lh-loose mt-0.5 mb-2 mx-2'>
2020
Website, name & logo &copy; 2017-{currentYear}
2121
<a
22-
class='inline-block'
22+
class='inline-block ml-1'
2323
href={settings.githubOrgUrl}
2424
rel='noopener noreferrer nofollow'
2525
target='_blank'>{settings.orgName}</a

0 commit comments

Comments
 (0)