Files
.github
api-server
client
config
curriculum
docs
guide
arabic
chinese
english
3d
accessibility
agile
algorithms
android-development
angular
apache
aspnet
bash
blender
blockchain
bootstrap
bsd-os
bulma
c
canvas
certifications
apis-and-microservices
coding-interview-prep
data-visualization
front-end-libraries
information-security-and-quality-assurance
javascript-algorithms-and-data-structures
basic-algorithm-scripting
basic-data-structures
basic-javascript
debugging
es6
compare-scopes-of-the-var-and-let-keywords
create-an-export-fallback-with-export-default
create-strings-using-template-literals
declare-a-read-only-variable-with-the-const-keyword
explore-differences-between-the-var-and-let-keywords
import-a-default-export
mutate-an-array-declared-with-const
prevent-object-mutation
set-default-parameters-for-your-functions
understand-the-differences-between-import-and-require
use--to-import-everything-from-a-file
use-arrow-functions-to-write-concise-anonymous-functions
use-class-syntax-to-define-a-constructor-function
use-destructuring-assignment-to-assign-variables-from-arrays
use-destructuring-assignment-to-assign-variables-from-nested-objects
index.md
use-destructuring-assignment-to-assign-variables-from-objects
use-destructuring-assignment-to-pass-an-object-as-a-functions-parameters
use-destructuring-assignment-with-the-rest-operator-to-reassign-array-elements
use-export-to-reuse-a-code-block
use-getters-and-setters-to-control-access-to-an-object
use-the-rest-operator-with-function-parameters
use-the-spread-operator-to-evaluate-arrays-in-place
write-arrow-functions-with-parameters
write-concise-declarative-functions-with-es6
write-concise-object-literal-declarations-using-simple-fields
write-higher-order-arrow-functions
index.md
functional-programming
intermediate-algorithm-scripting
javascript-algorithms-and-data-structures-projects
object-oriented-programming
regular-expressions
index.md
responsive-web-design
index.md
chef
clojure
cloud-development
codeigniter
computational-genomics
computer-hardware
computer-science
containers
cplusplus
csharp
css
d3
data-science-tools
design-patterns
designer-tools
developer-ethics
developer-tools
devops
docker
documentation
drupal
electron
elixir
elm
erlang
fsharp
game-development
gatsbyjs
git
go
groovy
haskell
haxe
hibernate
html
ionic
java
javascript
joomla
jquery
julia
kotlin
laravel
linux
logic
machine-learning
mariadb
mathematics
meta
miscellaneous
mobile-app-development
mongodb
natural-language-processing
neovim
network-engineering
nginx
nodejs
optical-alignment
php
product-design
progressive-web-apps
puppet
python
r
raspberry-pi
react
react-native
redux
rest-api
robotics
rt-os
ruby
rust
sass
security
semantic-ui
software-engineering
sql
ssh
svg
svn
swift
terminal-commandline
tomcat
tools
typescript
typography
user-experience-design
user-experience-research
vagrant
vim
virtualbox
visual-design
voice
vue
vue-cli
web-augmented-reality
web-components
web-performance
web-virtual-reality
wordpress
working-in-tech
xml
portuguese
russian
spanish
mock-guide
tools
.editorconfig
.eslintignore
.eslintrc
.gitattributes
.gitignore
.node-inspectorrc
.prettierrc
.snyk
.travis.yml
.vcmrc
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE.md
README.french.md
README.italian.md
README.md
docker-compose-shared.yml
docker-compose.yml
lerna.json
netlify.toml
package-lock.json
package.json
sample.env
2018-10-16 21:32:40 +05:30

467 B

title
title
Use Destructuring Assignment to Assign Variables from Nested Objects

Use Destructuring Assignment to Assign Variables from Nested Objects

Tip to pass final test: nested destructuring was used

The test wants you to obtain max and max only. If you destructure your constant to contain both max and min, the test will fail.

Spoiler!

Here is the code solution:

const { tomorrow: { max: maxOfTomorrow } } = forecast;