Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Modifying and Extending Object | Objects Fundamentals
JavaScript Data Structures

Challenge: Modifying and Extending ObjectChallenge: 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:

  1. To modify a property's value, use assignment with dot notation.
  2. To add a new property, use the assignment with dot notation, providing the property name and value.

Все було зрозуміло?

Секція 2. Розділ 8
course content

Зміст курсу

JavaScript Data Structures

Challenge: Modifying and Extending ObjectChallenge: 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:

  1. To modify a property's value, use assignment with dot notation.
  2. To add a new property, use the assignment with dot notation, providing the property name and value.

Все було зрозуміло?

Секція 2. Розділ 8
some-alt