From 4f7583ab95c4aa2f4cd2c5a499d8a348789f2190 Mon Sep 17 00:00:00 2001 From: Patrick Njuguna Date: Mon, 6 Jan 2020 07:42:20 +0300 Subject: [PATCH] static values with fill example fix --- 05_Day/05_day_arrays.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/05_Day/05_day_arrays.md b/05_Day/05_day_arrays.md index 57065a7..f8eff88 100644 --- a/05_Day/05_day_arrays.md +++ b/05_Day/05_day_arrays.md @@ -309,10 +309,10 @@ const eightXvalues = Array(8).fill('X') // it creates eight element values console.log(eightXvalues) // ['X', 'X','X','X','X','X','X','X'] const eight0values = Array(8).fill(0) // it creates eight element values -console.log(eight0Values) // [0, 0, 0, 0, 0, 0, 0, 0] +console.log(eight0values) // [0, 0, 0, 0, 0, 0, 0, 0] const four4values = Array(4).fill(4) // it creates 4 element values -console.log(four4Values) // [4, 4, 4, 4, 4, 4, 4, 4] +console.log(four4values) // [4, 4, 4, 4, 4, 4, 4, 4] ``` #### Concatenating array using concat