Use Destructuring Assignment to Assign Variables from Objects-not able to Submit

i did as per the instructions but when submitted it shows destructuring not used

Your code so far

  today: 77.5,
  tomorrow: 79

function getTempOfTmrw(avgTemperatures) {
  "use strict";
  // change code below this line
  const {tomorrow : tempOfTomorrow} = AVG_TEMPERATURES; // change this line
  // change code above this line
  return (tempOfTomorrow);

console.log(getTempOfTmrw(AVG_TEMPERATURES)); // should be 79

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36.

Link to the challenge:

Hey @dhana89,

You are creating your function in manner that it will work only on AVG_TEMPERATURES object.
But, what if there was another object like :

  today: 75.5,
  tomorrow: 80

You will have to write function for that too.
So, you should use the argument passed in your function instead of actual object name and your function will be applicable for every object.

Does this help?

I don’t think that return statement had parenthesis and if you don’t respect the indications of where to edit code you will not pass tests because of that