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 perimeter: 80
} }
let { width, heigh, area, perimeter = 60 } = rectangle 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. Destructuring keys as a function parameters. Lets create a function which take a rectangle object and it return a perimeter of a rectangle.
@ -695,4 +695,4 @@ const users = [
``` ```
🎉 CONGRATULATIONS ! 🎉 🎉 CONGRATULATIONS ! 🎉
[<< Day 10](../10_Day_Sets_and_Maps/10_day_Sets_and_Maps.md) | [Day 12>>](../12_Day_Regular_expressions/12_day_regular_expressions.md) [<< Day 10](../10_Day_Sets_and_Maps/10_day_Sets_and_Maps.md) | [Day 12>>](../12_Day_Regular_expressions/12_day_regular_expressions.md)

Loading…
Cancel
Save