diff --git a/Exercises/test/test.js b/Exercises/test/test.js index ab52d3a..e313c99 100644 --- a/Exercises/test/test.js +++ b/Exercises/test/test.js @@ -1,7 +1,34 @@ -const rectangle = { - width: 20, - height: 10, -} +// const arr = ['Finland', 'Estonia', 'Sweden', 'Norway'] +// const arr2 = [] +// arr.forEach((country) => arr2.push(country.toUpperCase())) +// console.log(arr2) -let { width, height, perimeter = 200 } = rectangle -console.log(width, height, perimeter) \ No newline at end of file + +// const arr = [1,2,3,4,5] +// let sum = 0 + +// const add = (num,i,arr) =>{ +// sum+=num +// } +// arr.forEach(add) +// console.log(sum) + +// const hey = () => { +// console.log('hey') +// } +// function hello() { +// console.log('hello') +// } +// hello() +// hey() + +// const countries = ['Finland', 'Estonia', 'Sweden', 'Norway'] +// console.log(countries.map((country) => country.toUpperCase())) +// const newarr = [] +// countries.forEach(x => { +// if (x.includes('land')) { +// newarr.push(x) +// } + +// }); +// console.log(newarr) \ No newline at end of file