From 1cbab65da815298049f7ab3e592ba9a86a5ff576 Mon Sep 17 00:00:00 2001 From: Taha <62564400+discover02@users.noreply.github.com> Date: Mon, 4 Jul 2022 09:58:44 +0300 Subject: [PATCH] Fixed wrong command --- 05_Day_Arrays/05_day_arrays.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/05_Day_Arrays/05_day_arrays.md b/05_Day_Arrays/05_day_arrays.md index 0dae635..f62013e 100644 --- a/05_Day_Arrays/05_day_arrays.md +++ b/05_Day_Arrays/05_day_arrays.md @@ -521,14 +521,14 @@ Splice: It takes three parameters:Starting position, number of times to be remov ```js const numbers = [1, 2, 3, 4, 5] - numbers.splice() + numbers.splice(0) console.log(numbers) // -> remove all items ``` ```js const numbers = [1, 2, 3, 4, 5] - numbers.splice(0,1) + numbers.splice(0,1) console.log(numbers) // remove the first item ```