Cursos /
JavaScript Data Structures
Challenge: Destructuring
Task
Create a script demonstrating object destructuring by extracting properties from the provided movie
object and logging them. Specifically, construct a logging message that includes the person's name, producer, budget, and duration time.
Expected output:
- Use object destructuring to extract the
name
,producer
,duration
, andbudget
properties from themovie
object. - Construct a sentence using the extracted properties to describe the movie.
Tudo estava claro?
Seção 3. Capítulo 8
Conteúdo do Curso
JavaScript Data Structures
1. Introduction and Prerequisites
2. Objects Fundamentals
Understanding ObjectsObject CreationNested PropertiesChallenge: Creating an ObjectAccessing Object PropertiesChallenge: Accessing Object PropertiesWorking with PropertiesChallenge: Modifying and Extending ObjectObject MethodsProperties in MethodsChallenge: Working with Object MethodsObject Fundamentals Sum Up
3. Advanced Object Manipulation
JavaScript Data Structures
Challenge: Destructuring
Task
Create a script demonstrating object destructuring by extracting properties from the provided movie
object and logging them. Specifically, construct a logging message that includes the person's name, producer, budget, and duration time.
Expected output:
- Use object destructuring to extract the
name
,producer
,duration
, andbudget
properties from themovie
object. - Construct a sentence using the extracted properties to describe the movie.
Tudo estava claro?
Seção 3. Capítulo 8