--- id: 587d7b89367417b2b2512b49 title: Use Destructuring Assignment to Assign Variables from Objects challengeType: 1 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(getTempOfTmrw(AVG_TEMPERATURES) === 79, "getTempOfTmrw(AVG_TEMPERATURES) should be 79");' - text: '' testString: 'getUserInput => assert(getUserInput("index").match(/\{\s*tomorrow\s*:\s*tempOfTomorrow\s*}\s*=\s*avgTemperatures/g),"destructuring with reassignment was used");' ```
## Challenge Seed
```js const AVG_TEMPERATURES = { today: 77.5, tomorrow: 79 }; function getTempOfTmrw(avgTemperatures) { "use strict"; // change code below this line const tempOfTomorrow = undefined; // change this line // change code above this line return tempOfTomorrow; } console.log(getTempOfTmrw(AVG_TEMPERATURES)); // should be 79 ```
## Solution
```js // solution required ```