typo corrections

pull/196/head
Seth Feldman 3 years ago committed by GitHub
parent d0c066fcb9
commit ce1cf660b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3045,12 +3045,12 @@ const rectangle = {
} }
let width = rectangle.width let width = rectangle.width
let height = recangle.height let height = rectangle.height
// or // or
let width = rectangle[width] let width = rectangle[width]
let height = recangle[height] let height = rectangle[height]
``` ```
But today, we will see how to access the value of an object using destructuring. But today, we will see how to access the value of an object using destructuring.
@ -3075,7 +3075,9 @@ const rectangle = {
height: 10, height: 10,
} }
let { width, height, perimeter } = rectangleconsole.log( let { width, height, perimeter } = rectangle
console.log(
width, width,
height, height,
perimeter perimeter

Loading…
Cancel
Save