diff --git a/solutions/DAY-01/ARRAYS/countries.js b/solutions/DAY-01/ARRAYS/countries.js new file mode 100644 index 0000000..6d35241 --- /dev/null +++ b/solutions/DAY-01/ARRAYS/countries.js @@ -0,0 +1,15 @@ +const countries = [ + 'Albania', + 'Bolivia', + 'Canada', + 'Denmark', + 'Ethiopia', + 'Finland', + 'Germany', + 'Hungary', + 'Ireland', + 'Japan', + 'Kenya', + ] + + \ No newline at end of file diff --git a/solutions/DAY-01/ARRAYS/level1.js b/solutions/DAY-01/ARRAYS/level1.js new file mode 100644 index 0000000..6feed3e --- /dev/null +++ b/solutions/DAY-01/ARRAYS/level1.js @@ -0,0 +1,29 @@ +const arr = [] +const arr5 = [1,2,3,4,5,6,7] + + +let mixedDataTypes = [1, 2, 3, "Man", [5,6], ['Man', 'Woman']] +console.log("Length of mixedDataType: " + mixedDataTypes.length) + +let itCompanies = ['Facebook', 'Google', 'Microsoft', 'Apple', 'IBM', 'Oracle', 'Amazon'] + +/*console.log("ITCompanies: " + itCompanies) +console.log("There are " + itCompanies.length + " companies") +console.log(itCompanies[0]) +console.log(itCompanies[3]) +console.log(itCompanies[itCompanies.length-1]) +*/ + +for(let i=0; i