From 327d9b411b30510eb4850353d0e0726564443fb2 Mon Sep 17 00:00:00 2001 From: Patrick Njuguna Date: Mon, 6 Jan 2020 08:05:21 +0300 Subject: [PATCH] unshift example fix --- 05_Day/05_day_arrays.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/05_Day/05_day_arrays.md b/05_Day/05_day_arrays.md index f8eff885..bf9dc689 100644 --- a/05_Day/05_day_arrays.md +++ b/05_Day/05_day_arrays.md @@ -570,7 +570,7 @@ unshift: Adding array element in the beginning of the array ```js const numbers = [1, 2, 3, 4, 5] -numbers.unshift(0) // -> remove one item from the beginning +numbers.unshift(0) // -> add one item from the beginning console.log(numbers) // -> [0,1,2,3,4,5] ```