From 4790a2317e609ea915040254e3724381c305e266 Mon Sep 17 00:00:00 2001 From: Patrick Njuguna Date: Mon, 6 Jan 2020 07:59:46 +0300 Subject: [PATCH] splice method in array 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..8187a880 100644 --- a/05_Day/05_day_arrays.md +++ b/05_Day/05_day_arrays.md @@ -503,7 +503,7 @@ Splice: It takes three parameters:Starting position, number of times to be remov ```js const numbers = [1, 2, 3, 4, 5]; - console.log(numbers.splice() // -> remove all items + console.log(numbers.splice()) // -> remove all items console.log(numbers.splice(0,1)) // remove the first item console.log(numbers.splice(3, 3, 6, 7, 8)) // -> [1,2,6,7,8] //it removes two item and replace three items