test file addded

pull/420/head
Fitsumhelina 10 months ago
parent 9207ca6230
commit 888772ec4a

@ -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)
// 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)
Loading…
Cancel
Save