From 29c387ddd9d89a4b4f56e54db6554e78e8dfffd5 Mon Sep 17 00:00:00 2001 From: Derrek Gass Date: Thu, 8 Oct 2020 12:50:32 -0700 Subject: [PATCH] moving into variables --- solutions/day-01/main.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/solutions/day-01/main.js b/solutions/day-01/main.js index d8b6a9a..f6163ee 100644 --- a/solutions/day-01/main.js +++ b/solutions/day-01/main.js @@ -1,12 +1,17 @@ let firstName = 'Derrek' firstName = 'Deek' -console.log(firstName) +console.log("first name is " + firstName) const PI = 3.14 // Not allowed to reassign PI to a new value // PI = 3. - -const arr = [] -console.log(arr) +const arr = [ + 'Derrek', + 250, + true, + { country: 'Finland', city: 'Helsinki' }, + { skills: ['HTML', 'CSS', 'JS', 'React', 'Python'] }, + ] // arr containing different data types + console.log(arr) const numbers = [0, 3.14, 9.81, 37, 98.6, 100] // array of numbers const fruits = ['banana', 'orange', 'mango', 'lemon'] // array of strings, fruits