Corrected minor code errors (#34260)

This commit is contained in:
Nemanja Jeremic
2018-11-12 08:12:31 +01:00
committed by Aditya
parent 0c4ab033aa
commit aa050465e9

View File

@ -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.