assignment operator to arror func

pull/388/head
ashmit-paul 2 years ago committed by GitHub
parent 8b41cd49c3
commit e37b2b6624
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3187,7 +3187,7 @@ Destructuring function parameter
```js ```js
const rectangle = { width: 20, height: 10 } const rectangle = { width: 20, height: 10 }
const calcualteArea = ({ width, height }) => width * height const calcualteArea = ({ width, height }) => width * height
const calculatePerimeter = ({ width, height } = 2 * (width + height)) const calculatePerimeter = ({ width, height } => 2 * (width + height))
``` ```
#### Exercises #### Exercises

Loading…
Cancel
Save