From 906e1f08eefd12223236098c8b73c8f0694d2dfc Mon Sep 17 00:00:00 2001 From: Matt Holloway Date: Fri, 13 Jan 2023 11:20:40 -0500 Subject: [PATCH] ...cont. --- solutions/day-01/src/App.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/solutions/day-01/src/App.js b/solutions/day-01/src/App.js index e10ef39..779b662 100644 --- a/solutions/day-01/src/App.js +++ b/solutions/day-01/src/App.js @@ -1,16 +1,13 @@ import './App.css'; function App() { - const ary = []; - ary.push([1,2,3,4]); + const ary = [1, 2, 3, 4]; + console.log(ary.length); + console.log(ary.toString()); return (

Array: - { - ary.map((element) => { - return element.toString(); - }) - } + {ary.join(', ')}

);