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
[x] The changes were done locally on your machine and NOT GitHub web interface.
If they were done on the web interface you have ensured that you are creating conventional commit messages.
Checklist:
[x] Tested changes locally.
[x] Addressed currently open issue (replace XXXXX with an issue no in next line)
ISSUES CLOSED: #213
Description
I updated ES6: Use Destructuring Assignment to Assign Variables from Objects so that it no longer requires the user to understand the difference between string primitives and string objects. It now follows the same theme as the challenge that follows.
This is the new
contents
of the challenge:And this is a solution:
I tested this on my local environment that was running the freeCodeCamp and learn repos.
Note: The code that I actually changed begins on line 707 and continues through line 753.
Pre-Submission Checklist
dev
branch.fix/
,feature/
, ortranslate/
(e.g.fix/challenge-tests
)npm test
.npm run commit
to generate a conventional commit message. Learn more here: https://conventionalcommits.org/#why-use-conventional-commitsChecklist:
Closes #213