const a = {В приведенном выше примере
start: {x: 5, y: 6},
end: {x: 6, y: -9}
};
const {start: {x: startX, y: startY}} = a;
console.log (startX, startY); // 5, 6
start переменной присваивается значение a.start , которое также является объектом.
max forecast.tomorrow И назначьте его maxOfTomorrow .
lowToday variable.
testString: assert(code.match(/(var|const|let)\s*{\s*today\s*:\s*{\s*(low\s*:\s*lowToday[^}]*|[^,]*,\s*low\s*:\s*lowToday\s*)}\s*}\s*=\s*LOCAL_FORECAST(;|\s+|\/\/)/g));
- text: You should use destructuring to create the highToday variable.
testString: assert(code.match(/(var|const|let)\s*{\s*today\s*:\s*{\s*(high\s*:\s*highToday[^}]*|[^,]*,\s*high\s*:\s*highToday\s*)}\s*}\s*=\s*LOCAL_FORECAST(;|\s+|\/\/)/g));
```