Minor fix on day 11 line 243

Console o/p should be 30 10 200 80(after) instead of 20 10 200 80(before)
pull/125/head
Utsav 5 years ago committed by GitHub
parent ff64df9419
commit c7269e8fca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -240,7 +240,7 @@ const rectangle = {
perimeter: 80
}
let { width, heigh, area, perimeter = 60 } = rectangle
console.log(width, height, area, perimeter) //20 10 200 80
console.log(width, height, area, perimeter) //30 10 200 80
```
Destructuring keys as a function parameters. Lets create a function which take a rectangle object and it return a perimeter of a rectangle.

Loading…
Cancel
Save