Corrected minor code errors (#34260)
This commit is contained in:
		| @@ -12,9 +12,9 @@ Thus, each string has a length property; genericString = {length: 13}. (This is | |||||||
|  |  | ||||||
| # Reassign properties using deconstruction.  | # Reassign properties using deconstruction.  | ||||||
| ```javascript | ```javascript | ||||||
| var basicOjb = {x: 40}; | var basicObj = {x: 40}; | ||||||
| //To reassign 'get the value of the x property of basicObj and place its value into bigX' in ES6: | //To reassign 'get the value of the x property of basicObj and place its value into bigX' in ES6: | ||||||
| const { x: bigX } = basicOjb; | const { x: bigX } = basicObj; | ||||||
| consle.log(bigX) // ans = 40  | console.log(bigX) // ans = 40  | ||||||
| ``` | ``` | ||||||
| Place the value of the length property of 'str' into len. | Place the value of the length property of 'str' into len. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user