mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-25 18:02:11 -05:00
599 B
599 B
title, localeTitle
| title | localeTitle |
|---|---|
| Use Destructuring Assignment to Assign Variables from Nested Objects | Use Destructuring Assignment para atribuir variáveis de objetos aninhados |
Use Destructuring Assignment para atribuir variáveis de objetos aninhados
Dica para passar no teste final: a desestruturação aninhada foi usada
O teste quer que você obtenha apenas max e max . Se você desestruturar sua constante para conter max e min , o teste falhará.
Spoiler!
Aqui está a solução de código:
const { tomorrow: { max: maxOfTomorrow } } = forecast;