diff --git a/05_Day/05_day_arrays.md b/05_Day/05_day_arrays.md index f8eff885..bc9370ee 100644 --- a/05_Day/05_day_arrays.md +++ b/05_Day/05_day_arrays.md @@ -490,8 +490,8 @@ Slice: To cut out a multiple items in range. It takes two parameters:starting an ```js const numbers = [1,2,3,4,5] - console.log(numbers.slice() // -> it copies all item - console.log(numbers.slice(0) // -> it copies all item + console.log(numbers.slice()) // -> it copies all item + console.log(numbers.slice(0)) // -> it copies all item console.log(numbers.slice(0, numbers.length)) // it copies all item console.log(numbers.slice(1,4)) // -> [2,3,4] // it doesn't include the ending position ```