fix: use correct variables for challenge (#34935)

Deleted the sentence which refers a.start.x as an object, as it is not an
object
pull/33085/head^2
rupali317 2019-02-21 14:00:21 +08:00 committed by Randell Dawson
parent 9d2719e2e4
commit 5f6595b7dc
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ challengeType: 1
We can similarly destructure <em>nested</em> objects into variables.
Consider the following code:
<blockquote>const a = {<br>&nbsp;&nbsp;start: { x: 5, y: 6},<br>&nbsp;&nbsp;end: { x: 6, y: -9 }<br>};<br>const { start : { x: startX, y: startY }} = a;<br>console.log(startX, startY); // 5, 6</blockquote>
In the example above, the variable <code>start</code> is assigned the value of <code>a.start</code>, which is also an object.
In the example above, the variable <code>startX</code> is assigned the value of <code>a.start.x</code>.
</section>
## Instructions