diff --git a/solutions/day-05/data/countries.js b/solutions/day-05/data/countries.js new file mode 100644 index 0000000..ffb2f80 --- /dev/null +++ b/solutions/day-05/data/countries.js @@ -0,0 +1,13 @@ +const countries = [ + 'Albania', + 'Bolivia', + 'Canada', + 'Denmark', + 'Ethiopia', + 'Finland', + 'Germany', + 'Hungary', + 'Ireland', + 'Japan', + 'Kenya' + ] diff --git a/solutions/day-05/data/web_techs.js b/solutions/day-05/data/web_techs.js new file mode 100644 index 0000000..6008522 --- /dev/null +++ b/solutions/day-05/data/web_techs.js @@ -0,0 +1,9 @@ +const webTechs = [ + 'HTML', + 'CSS', + 'JavaScript', + 'React', + 'Redux', + 'Node', + 'MongoDB' + ] \ No newline at end of file diff --git a/solutions/day-05/index.html b/solutions/day-05/index.html new file mode 100644 index 0000000..14a93c6 --- /dev/null +++ b/solutions/day-05/index.html @@ -0,0 +1,26 @@ + + + + + 30DaysOfJavaScript:Day 05 + + + + +

30DaysOfJavaScript:Day 05

+

Arrays

+ + + + + + + \ No newline at end of file diff --git a/solutions/day-05/main.js b/solutions/day-05/main.js new file mode 100644 index 0000000..ce1bd8b --- /dev/null +++ b/solutions/day-05/main.js @@ -0,0 +1,8 @@ +const emptArr = []; +const arr = [1,2,3,4,5]; +const arrLen = arr.length; + +console.log("length is :", arrLen); // array length + +console.log(arr[0]); // first item +console.log([arr.length - 1]); // last item