From 9442aec3558eade180cd3059a235ebbf9acc6645 Mon Sep 17 00:00:00 2001 From: johnmarklumapac <102014089+johnmarklumapac@users.noreply.github.com> Date: Tue, 18 Apr 2023 17:45:35 +0800 Subject: [PATCH] some corrections --- 05_Day_Arrays/05_day_arrays.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/05_Day_Arrays/05_day_arrays.md b/05_Day_Arrays/05_day_arrays.md index 0dae635..bc32a22 100644 --- a/05_Day_Arrays/05_day_arrays.md +++ b/05_Day_Arrays/05_day_arrays.md @@ -535,7 +535,7 @@ Splice: It takes three parameters:Starting position, number of times to be remov ```js const numbers = [1, 2, 3, 4, 5, 6] numbers.splice(3, 3, 7, 8, 9) - console.log(numbers.splice(3, 3, 7, 8, 9)) // -> [1, 2, 3, 7, 8, 9] //it removes three item and replace three items + console.log(numbers) // -> [1, 2, 3, 7, 8, 9] //it removes three item and replace three items ``` #### Adding item to an array using push