From 00ec649ea947098b298981d523c11a327a1c233b Mon Sep 17 00:00:00 2001 From: Dzykas Date: Wed, 13 Sep 2023 22:26:29 +0300 Subject: [PATCH] ignas --- solutions/day-05/data/countries.js | 13 +++++++++++++ solutions/day-05/data/web_techs.js | 9 +++++++++ solutions/day-05/index.html | 26 ++++++++++++++++++++++++++ solutions/day-05/main.js | 8 ++++++++ 4 files changed, 56 insertions(+) create mode 100644 solutions/day-05/data/countries.js create mode 100644 solutions/day-05/data/web_techs.js create mode 100644 solutions/day-05/index.html create mode 100644 solutions/day-05/main.js 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