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 @@ + + +
+ + + +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