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: Modifying and Extending Object
Task
You're given an object, student
, representing a student's information. Your task is to modify existing properties and add new properties.
- Modify the student's age to be
21
. - Add a new property called
grade
and set it to"A"
.
Expected output:
- To modify a property's value, use assignment with dot notation.
- To add a new property, use the assignment with dot notation, providing the property name and value.
Tudo estava claro?
Seção 2. 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: Modifying and Extending Object
Task
You're given an object, student
, representing a student's information. Your task is to modify existing properties and add new properties.
- Modify the student's age to be
21
. - Add a new property called
grade
and set it to"A"
.
Expected output:
- To modify a property's value, use assignment with dot notation.
- To add a new property, use the assignment with dot notation, providing the property name and value.
Tudo estava claro?
Seção 2. Capítulo 8