From 3891df6485acda1b5728c3c508b3b211dfc4fa70 Mon Sep 17 00:00:00 2001 From: loic242 Date: Mon, 5 Dec 2022 23:04:44 +0200 Subject: [PATCH] code --- 05_Day_Arrays/05_day_starter/scripts/main.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/05_Day_Arrays/05_day_starter/scripts/main.js b/05_Day_Arrays/05_day_starter/scripts/main.js index 094720c..ee14bd8 100644 --- a/05_Day_Arrays/05_day_starter/scripts/main.js +++ b/05_Day_Arrays/05_day_starter/scripts/main.js @@ -56,7 +56,8 @@ const webTechs = [ 22. Remove the last IT company from the array 23. Remove all IT companies */ -let myArr = Array(); //Empty array + //Empty array const animals = ['lion','dog','cat','pig','monkey']; -const myArrayLength = animals.length(); -console.log(myArrayLength) \ No newline at end of file +console.log(`This is my array: ${animals}`) +const myArrayLength = animals.length; +console.log(`This array length is: ${myArrayLength}`);