Given an object 'person', write a single line of code to add a new property 'age' with the value 30 to it. Use dot notation in your answer.
Introduction to Objects
Adding years to a digital persona
Report a typo
Enter a short text
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.