From 517e29ce8e809949f5201d8febaedfb2821c4030 Mon Sep 17 00:00:00 2001 From: Vikrant Tomar <71812400+hkrvikrant@users.noreply.github.com> Date: Sun, 28 Apr 2024 00:08:37 +0530 Subject: [PATCH] Update Manipulating Arrays.md --- tutorials/learn-js.org/en/Manipulating Arrays.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/learn-js.org/en/Manipulating Arrays.md b/tutorials/learn-js.org/en/Manipulating Arrays.md index 85d60a23f..e8664c17f 100644 --- a/tutorials/learn-js.org/en/Manipulating Arrays.md +++ b/tutorials/learn-js.org/en/Manipulating Arrays.md @@ -29,7 +29,7 @@ This will print out the variable we popped from the array, and what's left of th ### Queues using shifting and unshifting -The `unshift` and `shift` methods are similar to `push` and `pop`, only they work from the beginning of the array. We can use the `push` and `shift` methods consecutively to utilize an array as a queue. For example: +The `unshift` and `shift` methods are similar to `push` and `pop`, only they work from the beginning of the array. We can use the `unshift` and `shift` methods consecutively to utilize an array as a queue. For example: var myQueue = []; myQueue.push(1);