From e27979823c55c1e375a2d811eba953960350cde1 Mon Sep 17 00:00:00 2001 From: abhijeet Date: Thu, 1 Dec 2022 16:27:47 +0530 Subject: [PATCH] Day1 commit --- 01_Day_JavaScript_Refresher/index.html | 13 +++++++++++++ 01_Day_JavaScript_Refresher/index.js | 17 +++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 01_Day_JavaScript_Refresher/index.html create mode 100644 01_Day_JavaScript_Refresher/index.js diff --git a/01_Day_JavaScript_Refresher/index.html b/01_Day_JavaScript_Refresher/index.html new file mode 100644 index 0000000..6e4076d --- /dev/null +++ b/01_Day_JavaScript_Refresher/index.html @@ -0,0 +1,13 @@ + + + + + + + Document + + +

basic js

+ + + \ No newline at end of file diff --git a/01_Day_JavaScript_Refresher/index.js b/01_Day_JavaScript_Refresher/index.js new file mode 100644 index 0000000..7103e14 --- /dev/null +++ b/01_Day_JavaScript_Refresher/index.js @@ -0,0 +1,17 @@ +let companiesString = 'Facebook, Google, Microsoft, Apple, IBM, Oracle, Amazon' +const companies = companiesString.split(' ') +console.log(companies) + +const arr = Array() // creates an an empty array +console.log(arr) + +const eightXvalues = Array(8).fill('X') // it creates eight element values filled with 'X' +console.log(eightXvalues) // ['X', 'X','X','X','X','X','X','X'] + +const eight0values = Array(8).fill(0) // it creates eight element values filled with '0' + +const firstList = [1, 2, 3] +const secondList = [4, 5, 6] +const thirdList = firstList.concat(secondList) + +console.log(thirdList) // [1, 2, 3, 4, 5, 6] \ No newline at end of file